diff --git a/server/game2006service/constant.js b/server/game2006service/constant.js index e69de29b..d6d9e9f5 100644 --- a/server/game2006service/constant.js +++ b/server/game2006service/constant.js @@ -0,0 +1 @@ +exports.TIME_ZONE = 0; diff --git a/server/game2006service/tasks/fragment.js b/server/game2006service/tasks/fragment.js index 5284aeb7..f18c3033 100644 --- a/server/game2006service/tasks/fragment.js +++ b/server/game2006service/tasks/fragment.js @@ -1,6 +1,8 @@ const app = require('j7/app'); const utils = require('j7/utils'); +const constant = require('../constant'); + const YESTERDAY_HERO_NUM = 1000; const YESTERDAY_GUN_NUM = 1000; @@ -9,6 +11,8 @@ class Fragment { async start() { while (true) { const nowTime = utils.getUtcTime(); + const daySeconds = utils.getDaySeconds(nowTime, constant.TIME_ZONE); + const hourSeconds = utils.getHourSeconds(nowTime, constant.TIME_ZONE); } }