bulk_edit

This commit is contained in:
2025-11-12 14:06:05 +08:00
parent 898b4ee274
commit b384210fe7
6 changed files with 180 additions and 0 deletions

View File

@@ -378,6 +378,29 @@ class Cashier extends Base
case 'search_pay_lock':
self::searchpaylock($client_id, $message);
break;
// 批量修改(历史订单与购物车)
case 'bulk_edit':
try {
if(empty($message['history']) && empty($message['cart'])) {
self::gateway_query('sendToClient', [$client_id, json_encode(['msg' => '数据结构错误'])]);
return;
}
$res = self::bulk_edit_data($message);
$rand = 'cashier_edit' . Random::build();
$snd_data = [
'msg' => '购物车修改',
'type' => 'cashier',
'status' => $res['status'],
'operate_type' => 'edit',
'data_type' => $res['data_type'],
'msg_id' => $rand,
'data' => []
];
self::gateway_query('sendToClient', [$client_id, json_encode($snd_data)]);
}catch (Exception $e) {
Log::info('修改购物车时[error]->>>>>' . $e->getMessage());
}
break;
}
}
}