소스 검색

完善功能

gorden 9 달 전
부모
커밋
3322dd8b1d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/admin/service/goods/GoodsService.php

+ 2 - 2
app/admin/service/goods/GoodsService.php

@@ -810,11 +810,11 @@ class GoodsService
             Db::commit();
         } catch (\PDOException $e) {
             Db::rollBack();
-            dump($e->getMessage());
+            dump($e->getFile().'('.$e->getLine().'):'.$e->getMessage());
             return json_fail('数据写入失败~');
         } catch (BusinessException $e) {
             Db::rollBack();
-            dump($e->getMessage());
+            dump($e->getFile().'('.$e->getLine().'):'.$e->getMessage());
             return json_fail($e->getMessage());
         } catch (\Exception $e) {
             Db::rollBack();