🐞 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) {
|
if ((!dbDetail || !dbDetail.shops || dbDetail.shops.length == 0) && isShop) {
|
||||||
let result = await getLayerShopReward(roleId, gameCode, authorType, nodeId, layerPlanData.shopPlan);
|
let result = await getLayerShopReward(roleId, gameCode, authorType, nodeId, layerPlanData.shopPlan);
|
||||||
dbPara.shops = shops = result.shops;
|
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) {
|
if ((!dbDetail || !dbDetail.rewards || dbDetail.rewards.length == 0) && isReward) {
|
||||||
let startTime = Date.now();
|
let startTime = Date.now();
|
||||||
@@ -308,6 +315,10 @@ export async function chooseNode(dbRecord: RougelikeRecordType, layerChooseNode:
|
|||||||
if (result && result.rewards) {
|
if (result && result.rewards) {
|
||||||
reward = result;
|
reward = result;
|
||||||
dbPara.rewards = result.rewards;
|
dbPara.rewards = result.rewards;
|
||||||
|
|
||||||
|
if (!isDevelopEnv() && reward && reward.weightRecords) {
|
||||||
|
reward.weightRecords = [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isDevelopEnv()) {
|
if (isDevelopEnv()) {
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
import { RougelikeCardPara } from "../db/RougelikeCard";
|
import { RougelikeCardPara } from "../db/RougelikeCard";
|
||||||
import { RougelikeCharaPara } from "../db/RougelikeChara";
|
import { RougelikeCharaPara } from "../db/RougelikeChara";
|
||||||
import { RougelikeCollectionType } from "../db/RougelikeCollection";
|
import { RougelikeCollectionType } from "../db/RougelikeCollection";
|
||||||
|
import { RandomRec } from "../db/RougelikeRecordDetail";
|
||||||
import { UserGuildType } from "../db/UserGuild";
|
import { UserGuildType } from "../db/UserGuild";
|
||||||
|
|
||||||
export interface RewardInter {
|
export interface RewardInter {
|
||||||
@@ -54,7 +55,7 @@ export interface RougeDamageInter {
|
|||||||
unserDamage: number;
|
unserDamage: number;
|
||||||
isAp: boolean;
|
isAp: boolean;
|
||||||
isRound: boolean;
|
isRound: boolean;
|
||||||
maxHp?:number;
|
maxHp?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Uid {
|
export interface Uid {
|
||||||
@@ -198,6 +199,7 @@ export interface CommonReward {
|
|||||||
takeoutReward?: RewardInter[]; // 可以外带的奖励 id&count
|
takeoutReward?: RewardInter[]; // 可以外带的奖励 id&count
|
||||||
score?: number; // 增加的积分
|
score?: number; // 增加的积分
|
||||||
techScore?: number; // 增加的科技分
|
techScore?: number; // 增加的科技分
|
||||||
|
weightRecords?: RandomRec[]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user