🐞 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;
|
||||
if (isDevelopEnv()) {
|
||||
weightRecords = dbPara.weightRecords = (result?.weightRecords || [])
|
||||
}
|
||||
if (dbDetail && dbDetail.shops) { shops = dbDetail.shops || shops; weightRecords = dbDetail.weightRecords }
|
||||
}
|
||||
if (dbDetail && dbDetail.shops) {
|
||||
shops = dbDetail.shops || shops;
|
||||
if (isDevelopEnv()) {
|
||||
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()) {
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
import { RougelikeCardPara } from "../db/RougelikeCard";
|
||||
import { RougelikeCharaPara } from "../db/RougelikeChara";
|
||||
import { RougelikeCollectionType } from "../db/RougelikeCollection";
|
||||
import { RandomRec } from "../db/RougelikeRecordDetail";
|
||||
import { UserGuildType } from "../db/UserGuild";
|
||||
|
||||
export interface RewardInter {
|
||||
@@ -198,6 +199,7 @@ export interface CommonReward {
|
||||
takeoutReward?: RewardInter[]; // 可以外带的奖励 id&count
|
||||
score?: number; // 增加的积分
|
||||
techScore?: number; // 增加的科技分
|
||||
weightRecords?: RandomRec[]
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user