Ejemplo n.º 1
0
 private function get_redis_key($week_offset = 0)
 {
     $time = $this->current_time - $week_offset * 7 * 86400;
     $week_date = Com_Util::get_next_week_day($time, false);
     # 每周周日
     $redis_key = $this->week_fame_sorted_set . "|" . $week_date;
     Com_Log::write('xgame.magic_parliament', "get_redis_key: time={$time}|get_reids_key:{$redis_key}");
     return $redis_key;
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     parent::__construct('game', 'game');
     $this->current_time = time();
     $this->flush_time = Com_Util::get_next_week_day($this->current_time) + 22 * 3600;
 }