军团:修复bug
This commit is contained in:
@@ -215,7 +215,7 @@ export class GuildHandler {
|
|||||||
if (!userGuild) {
|
if (!userGuild) {
|
||||||
return resResult(STATUS.GUILD_MEMBER_NOT_FOUND);
|
return resResult(STATUS.GUILD_MEMBER_NOT_FOUND);
|
||||||
}
|
}
|
||||||
await this.app.rpc.connector.connectorRemote.setOtherUserGuildSession.toServer(sid,[{ roleId: memberRoleId, userGuild }]);
|
await this.app.rpc.connector.connectorRemote.setOtherUserGuildSession.broadcast([{ roleId: memberRoleId, userGuild }]);
|
||||||
|
|
||||||
const role = await RoleModel.findByRoleId(memberRoleId);
|
const role = await RoleModel.findByRoleId(memberRoleId);
|
||||||
let updateObject = {};
|
let updateObject = {};
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import { RoleModel } from '../../../db/Role';
|
|||||||
import { getRoleOnlineInfo } from '../../../services/redisService';
|
import { getRoleOnlineInfo } from '../../../services/redisService';
|
||||||
import { ARMY } from '../../../pubUtils/dicParam';
|
import { ARMY } from '../../../pubUtils/dicParam';
|
||||||
import { guildInter } from '../../../pubUtils/interface';
|
import { guildInter } from '../../../pubUtils/interface';
|
||||||
import { getSeconds, nowSeconds } from '../../../pubUtils/timeUtil';
|
import { getSeconds, getZeroPoint, nowSeconds } from '../../../pubUtils/timeUtil';
|
||||||
export default function(app: Application) {
|
export default function(app: Application) {
|
||||||
return new WishPoolHandler(app);
|
return new WishPoolHandler(app);
|
||||||
}
|
}
|
||||||
@@ -70,7 +70,8 @@ export class WishPoolHandler {
|
|||||||
if (resType == type)
|
if (resType == type)
|
||||||
len++;
|
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);
|
return resResult(STATUS.HAS_REACH_WISH_COUNT_LIMIT);
|
||||||
}
|
}
|
||||||
if (len >= ARMY.ARMY_WISH_TIMES) //今日已经许愿过
|
if (len >= ARMY.ARMY_WISH_TIMES) //今日已经许愿过
|
||||||
|
|||||||
Reference in New Issue
Block a user