|
@@ -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;
|