diff --git a/plugin/webman/gateway/Events.php b/plugin/webman/gateway/Events.php index 17353cf..5d6beb1 100644 --- a/plugin/webman/gateway/Events.php +++ b/plugin/webman/gateway/Events.php @@ -126,7 +126,8 @@ class Events $redis_str = Base::get_shopping_save_uid($message['shop_id'], $message['table_code']) . ':time_discount'; // 限时折扣修改 if($message['operate_type'] == 'time_discount_save') { - if(empty($message)) { + + if(empty($message['data'])) { $res = Redis::del($redis_str); }else { $res = Redis::set($redis_str, $message['data']);