소스 검색

专题写入失败

gorden 3 달 전
부모
커밋
0be6c30064
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  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');
     }