|
@@ -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');
|
|
|
}
|