发放奖励并同步到today) */ public $haventReward_tsDay = 0; /** * @var 赛季未发放奖励(seasonId < curSeason =>发放奖励并同步到curSeason) */ public $haventReward_season = 0; /** * 刷新竞技商店道具列表 */ public function refreshShopItem() { if ($this->shopRefreshTs <= now()) { # 刷新tsfightTicketRefreshTs) <= tsDay()) { # 刷新时间<=今天,该刷新了 $this->freeFightTickets = 3; # 重置为3, 此处的3可以改为读取配置数据 $this->fightTicketRefreshTs = now() + 86400; # 刷新时间设置为明天 } // 刷新商店道具列表 $this->refreshShowItem(); } public function __construct($arg) { parent::__construct($arg); if (null == $this->defTeam) { $this->defTeam = JsonUtil::decode('{"heros":[]}'); } } }