✨ feat(兼容): 配表使用后台隐藏物品
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user