军团:修复bug

This commit is contained in:
luying
2021-09-26 19:54:45 +08:00
parent e952580ac8
commit e93843f71b
2 changed files with 4 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ import { RoleModel } from '../../../db/Role';
import { getRoleOnlineInfo } from '../../../services/redisService';
import { ARMY } from '../../../pubUtils/dicParam';
import { guildInter } from '../../../pubUtils/interface';
import { getSeconds, nowSeconds } from '../../../pubUtils/timeUtil';
import { getSeconds, getZeroPoint, nowSeconds } from '../../../pubUtils/timeUtil';
export default function(app: Application) {
return new WishPoolHandler(app);
}
@@ -70,7 +70,8 @@ export class WishPoolHandler {
if (resType == type)
len++;
});
if(receivedWishPool.indexOf(type) != -1 && getSeconds(createdAt) > nowSeconds()) {
if(receivedWishPool.indexOf(type) != -1 && getSeconds(createdAt) > getZeroPoint()) {
return resResult(STATUS.HAS_REACH_WISH_COUNT_LIMIT);
}
if (len >= ARMY.ARMY_WISH_TIMES) //今日已经许愿过