|
@@ -131,9 +131,9 @@ class Cache:
|
|
|
key = CTI_ENGINE_DELAY_ACTION % action
|
|
|
current_time = int(time.time() * 1000) # 毫秒级时间戳
|
|
|
members = self.redis_handler.redis.zrangebyscore(key, 0, current_time, start=0, num=DELAY_ACTION_BATCH_SIZE, withscores=True)
|
|
|
- self.logger.info('get_delay_message %s %s %s'%(key, action, members))
|
|
|
if not members:
|
|
|
return []
|
|
|
+ self.logger.info('get_delay_message %s %s %s'%(key, action, members))
|
|
|
# scored_entries = [{"member": entry[0].decode('utf-8'), "score": entry[1]} for entry in members]
|
|
|
action_list = [entry[0].decode('utf-8') for entry in members]
|
|
|
if action_list:
|