This commit is contained in:
ASUS 2025-10-22 16:39:07 +08:00
parent f4e5ccc8e2
commit d56d298879
1 changed files with 1 additions and 1 deletions

View File

@ -132,8 +132,8 @@ class Events
$res = Redis::set($redis_str, json_encode($message['data']));
// 将桌号存入redis 以便及时删除
$time_discount_info = Redis::get('time_discount:info');
$arr_time_discount_info = json_decode($time_discount_info, true);
if($time_discount_info) {
$arr_time_discount_info = explode(',', $time_discount_info);
if(!in_array($redis_str, $arr_time_discount_info)) {
$time_discount_info = array_merge($arr_time_discount_info, $redis_str);
Redis::set('time_discount:info', implode(',', $time_discount_info) . ',');