xialei 1 год назад
Родитель
Сommit
52ed1993b3
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      app/controller/api/merchant/order/OrderMerchant.php

+ 2 - 0
app/controller/api/merchant/order/OrderMerchant.php

@@ -11,6 +11,7 @@ use app\common\repositories\merchant\MerchantRepository;
11
 use app\traits\HaikeApiRequest;
11
 use app\traits\HaikeApiRequest;
12
 use app\traits\HuiPay;
12
 use app\traits\HuiPay;
13
 use think\App;
13
 use think\App;
14
+use think\Exception;
14
 use crmeb\basic\BaseController;
15
 use crmeb\basic\BaseController;
15
 use app\common\repositories\merchant\order\OrderMerchantRepository as repository;
16
 use app\common\repositories\merchant\order\OrderMerchantRepository as repository;
16
 use think\facade\Cache;
17
 use think\facade\Cache;
@@ -749,6 +750,7 @@ class OrderMerchant extends BaseController
749
                         return app('json')->success(['result' => 'ERROR']);
750
                         return app('json')->success(['result' => 'ERROR']);
750
                     return app('json')->success(['result' => 'SUCCESS']);
751
                     return app('json')->success(['result' => 'SUCCESS']);
751
                 }catch (Exception $exception){
752
                 }catch (Exception $exception){
753
+                    Db::name("log")->insert(array('data'=>$exception->getFile().':'.$exception->getLine().'【'.$exception->getMessage().'】'));
752
                     return app('json')->fail('错误2');
754
                     return app('json')->fail('错误2');
753
                 }
755
                 }
754
             }
756
             }