gorden 7 сар өмнө
parent
commit
4a329ad896

+ 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 = json_decode($order->order_config_json,true);
             }
             }
             $orderConfigJson['preferential'] = $params['preferential'] ?? '';
             $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_config_json = json_encode($orderConfigJson);
             $order->order_amount_pay = $params['order_amount_pay']+$qrcodePayAmount;
             $order->order_amount_pay = $params['order_amount_pay']+$qrcodePayAmount;