Browse Source

专题写入失败

gorden 3 months ago
parent
commit
0be6c30064
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/controller/Curd.php

+ 3 - 2
app/controller/Curd.php

@@ -9,6 +9,7 @@ use app\common\Tree;
 use app\common\Util;
 use support\CustomException;
 use support\exception\BusinessException;
+use support\Log;
 use support\Model;
 use support\Request;
 use support\Response;
@@ -102,8 +103,8 @@ class Curd
         } catch (BusinessException $customException) {
             return json_fail($customException->getMessage());
         } catch (\Exception $e) {
-            dump($e->getMessage());
-            return json_fail('数据写入失败11');
+            Log::error("数据写入失败",['msg'=>$e->getMessage()]);
+            return json_fail('数据写入失败');
         }
         return json_success('success');
     }