✨ feat(兼容): 配表使用后台隐藏物品

This commit is contained in:
luying
2022-11-10 11:11:28 +08:00
parent 5d0873630a
commit 53d4af4e09
54 changed files with 768 additions and 102 deletions
+4
View File
@@ -13,6 +13,7 @@ import { BackendSession, pinus } from "pinus";
import { ActivityModelType } from "../db/Activity";
import { addItems } from "./role/rewardService";
import { LadderMatchModel } from "../db/LadderMatch";
import { isGoodsHidden } from "./dataService";
export async function getAllShopList(roleId: string, serverId: number) {
let seasonNum = pinus.app.get('pvpSeasonNum');
@@ -178,6 +179,9 @@ export async function checkShopItemCanBuy(activityId: number, shopItemId: number
}
}
}
if(isGoodsHidden(dicShopItem.goodId)) {
return STATUS.ITEM_IS_HIDDEN;
}
return STATUS.SUCCESS
}