<?php

/**
 * 初始排位赛金牌定时任务时间
 */

namespace Tool\InitServer\Logic;

use Framework\Lib\Utils;
use Framework\Logic\CommonTimerLogic;
use Game\Constant\ModelTypeDefine;
use Tool\InitServer\IBase;

class InitPaiWeiGoldTime extends IBase
{
    use CommonTimerLogic;

    protected function run(): bool
    {
        //明天凌晨,开启定时任务
        $time = strtotime(date("Ymd", strtotime("+1 day", Utils::getServerTimestamp()))) +1;
        echo "InitPaiWeiGoldTime :{$time}";
        echo "<br>\n";
        return $this->addCommonTimer(
            ModelTypeDefine::PAIWEI_LEVEL,
            0,
            $time
        );
    }
}
