gorden 9 miesięcy temu
rodzic
commit
3322dd8b1d
1 zmienionych plików z 2 dodań i 2 usunięć
  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();