Procházet zdrojové kódy

Merge branch 'master' of https://git.bjtdba.com/shop/php

chengzhiyixia před 1 rokem
rodič
revize
8fc2e30ad9
2 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 1 1
      README.md
  2. 2 0
      app/controller/api/merchant/order/OrderMerchant.php

+ 1 - 1
README.md

@@ -1,4 +1,4 @@
1
-# 老来享
1
+# 幸福保
2
 ## 开发环境
2
 ## 开发环境
3
 
3
 
4
 - mac 10.15
4
 - mac 10.15

+ 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
             }