Browse Source

当面付

gorden 7 months ago
parent
commit
5f0cf63702
1 changed files with 5 additions and 0 deletions
  1. 5 0
      app/admin/controller/order/WholeController.php

+ 5 - 0
app/admin/controller/order/WholeController.php

@@ -752,6 +752,11 @@ class WholeController extends Curd
 
             _syslog("订单","创建订单成功");
             return json_success('创建订单成功');
+        }catch(BusinessException $e){
+            Db::rollBack();
+            dump($e->getMessage());
+            _syslog("订单",$e->getMessage());
+            return json_fail($e->getMessage());
         } catch (\Exception $e) {
             Db::rollBack();
             dump($e->getMessage());