🐞 fix(稷下学宫): 正式环境屏蔽权重展示
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user