This commit is contained in:
2025-10-22 16:12:28 +08:00
parent 35b32ee4dc
commit a57399cc50
2 changed files with 4 additions and 5 deletions

View File

@@ -134,11 +134,10 @@ class Events
// 将桌号存入redis 以便及时删除
$time_discount_info = Redis::get('time_discount:info');
if($time_discount_info) {
$time_discount_info_arr = json_decode($time_discount_info, true);
$time_discount_info_arr = array_merge($time_discount_info_arr, $redis_str);
Redis::set('time_discount:info', json_encode($time_discount_info_arr));
$time_discount_info .= $redis_str . ',';
Redis::set('time_discount:info', $time_discount_info);
}else {
Redis::set('time_discount:info', json_encode($redis_str));
Redis::set('time_discount:info', $redis_str . ',');
}
}
$snd_data = [