军团优化:拍卖行基础奖励
This commit is contained in:
@@ -50,12 +50,7 @@ export class ShopHandler {
|
||||
|
||||
if(dicShopItem.guildLvLimit) {
|
||||
let myGuild = await GuildModel.findByCode(guildCode, serverId);
|
||||
if(!myGuild) return resResult(STATUS.GUILD_LV_LIMIT);
|
||||
let { structure } = myGuild;
|
||||
let curStructure = structure.find(cur => cur.id == GUILD_STRUCTURE.STORE);
|
||||
if(!curStructure || curStructure.lv < dicShopItem.guildLvLimit) {
|
||||
return resResult(STATUS.GUILD_LV_LIMIT);
|
||||
}
|
||||
if(!myGuild || myGuild.lv < dicShopItem.guildLvLimit) return resResult(STATUS.GUILD_LV_LIMIT);
|
||||
}
|
||||
if(dicShopItem.lvlimit) {
|
||||
let role = await RoleModel.findByRoleId(roleId, 'lv');
|
||||
|
||||
Reference in New Issue
Block a user