Beispiel #1
0
    public override void onNewCreate()
    {
        long time = me.getTimeMillis();

        _d.loginDate     = time;
        _d.logoutDate    = time;
        _d.nextDailyTime = DateControl.getNextDailyTime();

        _d.clientRandomSeedIndex = 0;
        _d.clientRandomSeeds     = ObjectUtils.EmptyIntArr;
    }
Beispiel #2
0
    /// <summary>
    /// 检查是否到了每天间隔
    /// </summary>
    public void checkDaily()
    {
        if (me.getTimeMillis() >= _d.nextDailyTime)
        {
            long nextDailyTimeT = DateControl.getNextDailyTime();

            if (_d.nextDailyTime != nextDailyTimeT)
            {
                _d.nextDailyTime = nextDailyTimeT;

                //每天调用
                me.onDaily();
            }
        }
    }