Browse Source

完善功能

gorden 7 months ago
parent
commit
4a329ad896
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/admin/controller/order/WholeController.php

+ 2 - 2
app/admin/controller/order/WholeController.php

@@ -867,8 +867,8 @@ class WholeController extends Curd
                 $orderConfigJson = json_decode($order->order_config_json,true);
             }
             $orderConfigJson['preferential'] = $params['preferential'] ?? '';
-            if (isset($orderConfigJson['table']) && !empty($orderConfigJson['table'])){
-                SysDept::where('dept_id',$orderConfigJson['table'])->where('dept_category','桌台')->update(['dept_status'=>'ACTIVED']);
+            if (isset($orderConfigJson['tableid']) && !empty($orderConfigJson['tableid'])){
+                SysDept::where('dept_id',$orderConfigJson['tableid'])->where('dept_category','桌台')->update(['dept_status'=>'ACTIVED']);
             }
             $order->order_config_json = json_encode($orderConfigJson);
             $order->order_amount_pay = $params['order_amount_pay']+$qrcodePayAmount;