fix(admin): 修复预约订单创建时的参数错误
- 将参数数组从 $params 改为 $order - 更新了 12 个字段的赋值逻辑
This commit is contained in:
parent
53f554c574
commit
a5a8e6c5fe
@ -437,18 +437,18 @@ class BeforehandOrderLogic extends BaseLogic
|
||||
'nickname' => $order['real_name'] ?? '',
|
||||
'phone' => $order['user_phone'] ?? '',
|
||||
'address' => $order['user_address'] ?? '',
|
||||
'arrival_time' => $params['arrival_time'] ?? '',
|
||||
'purpose' => $params['purpose'] ?? '',
|
||||
'tables' => $params['tables'] ?? '',
|
||||
'days' => $params['days'] ?? '',
|
||||
'chef' => $params['chef'] ?? '',
|
||||
'chef_phone' => $params['chef_phone'] ?? '',
|
||||
'splitting_officer' => $params['splitting_officer'] ?? '',
|
||||
'merchandiser' => $params['merchandiser'] ?? '',
|
||||
'distribution_personnel' => $params['distribution_personnel'] ?? '',
|
||||
'transporter' => $params['transporter'] ?? '',
|
||||
'system_store_name' => $params['system_store_name'] ?? '',
|
||||
'regional_manager' => $params['regional_manager'] ?? '',
|
||||
'arrival_time' => $order['arrival_time'] ?? '',
|
||||
'purpose' => $order['purpose'] ?? '',
|
||||
'tables' => $order['tables'] ?? '',
|
||||
'days' => $order['days'] ?? '',
|
||||
'chef' => $order['chef'] ?? '',
|
||||
'chef_phone' => $order['chef_phone'] ?? '',
|
||||
'splitting_officer' => $order['splitting_officer'] ?? '',
|
||||
'merchandiser' => $order['merchandiser'] ?? '',
|
||||
'distribution_personnel' => $order['distribution_personnel'] ?? '',
|
||||
'transporter' => $order['transporter'] ?? '',
|
||||
'system_store_name' => $order['system_store_name'] ?? '',
|
||||
'regional_manager' => $order['regional_manager'] ?? '',
|
||||
];
|
||||
$order = BeforehandOrder::create([
|
||||
'order_id' => getNewOrderId('YG'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user