浏览代码

完善功能

gorden 7 月之前
父节点
当前提交
4a329ad896
共有 1 个文件被更改,包括 2 次插入2 次删除
  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;