🐞 fix(稷下学宫): 正式环境屏蔽权重展示

This commit is contained in:
zhangxk
2023-09-22 11:14:52 +08:00
parent a88d48e34b
commit c6af85928f
2 changed files with 16 additions and 3 deletions

View File

@@ -297,9 +297,16 @@ export async function chooseNode(dbRecord: RougelikeRecordType, layerChooseNode:
if ((!dbDetail || !dbDetail.shops || dbDetail.shops.length == 0) && isShop) {
let result = await getLayerShopReward(roleId, gameCode, authorType, nodeId, layerPlanData.shopPlan);
dbPara.shops = shops = result.shops;
weightRecords = dbPara.weightRecords = (result?.weightRecords || [])
if (isDevelopEnv()) {
weightRecords = dbPara.weightRecords = (result?.weightRecords || [])
}
}
if (dbDetail && dbDetail.shops) {
shops = dbDetail.shops || shops;
if (isDevelopEnv()) {
weightRecords = dbDetail.weightRecords
}
}
if (dbDetail && dbDetail.shops) { shops = dbDetail.shops || shops; weightRecords = dbDetail.weightRecords }
if ((!dbDetail || !dbDetail.rewards || dbDetail.rewards.length == 0) && isReward) {
let startTime = Date.now();
@@ -308,6 +315,10 @@ export async function chooseNode(dbRecord: RougelikeRecordType, layerChooseNode:
if (result && result.rewards) {
reward = result;
dbPara.rewards = result.rewards;
if (!isDevelopEnv() && reward && reward.weightRecords) {
reward.weightRecords = [];
}
}
if (isDevelopEnv()) {