From 40911b8f2419da430c61b494d20d327464b1b2db Mon Sep 17 00:00:00 2001 From: duhui Date: Wed, 8 Sep 2021 14:13:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E9=97=B9=E5=A4=A9=E5=AE=AB=EF=BC=8C?= =?UTF-8?q?=E5=95=86=E5=BA=97=E5=88=B7=E6=96=B0=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../logic/expedition/ExpeditionLogic.java | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/expedition/ExpeditionLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/expedition/ExpeditionLogic.java index 7c548cc8a..28d251d4f 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/expedition/ExpeditionLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/expedition/ExpeditionLogic.java @@ -192,20 +192,26 @@ public class ExpeditionLogic { int state = nodeInfo1.getLay() == oldlay ? (nodeInfo1.getSortId() == passNode ? ExpeditionLogic.NODESTATE_PASS : ExpeditionLogic.NODESTATE_OVER_PASS) : nextNodeId.contains(nodeInfo1.getSortId())?ExpeditionLogic.NODESTATE_NOT_PASS:ExpeditionLogic.NODESTATE_CLOSE; nodeInfo1.setState(state); - if(nodeInfo1.getType()==ExpeditionLogic.NODETYPE_SHOP&&newlay==nodeInfo1.getLay()){ - try { - //更新商店 - StoreLogic.initOneStore(user, 56); - }catch (Exception e){ - e.printStackTrace(); - } - } +// if(nodeInfo1.getType()==ExpeditionLogic.NODETYPE_SHOP&&newlay==nodeInfo1.getLay()){ +// try { +// //更新商店 +// StoreLogic.initOneStore(user, 56); +// }catch (Exception e){ +// e.printStackTrace(); +// } +// } //最后的奖励节点 前端显示跳转入口用 if( nodeInfo1.getLay() == oldlay&&nodeInfo1.getType()==ExpeditionLogic.NODETYPE_REWARD){ if(user.getExpeditionManager().getExpeditionLeve()<=2){ nodeInfo1.setState(ExpeditionLogic.NODESTATE_NOT_GET); } + //更新商店 + try { + StoreLogic.initOneStore(user, 56); + } catch (Exception e) { + e.printStackTrace(); + } } nodeInfos.add(CommonProto.ExpeditionNodeInfo.newBuilder() .setSortId(nodeInfo1.getSortId()) @@ -535,7 +541,7 @@ public class ExpeditionLogic { } private static void checkAndResetTreasure(User user) throws Exception { - SExpeditionSetting sExpeditionSetting = STableManager.getConfig(SExpeditionSetting.class).get(1); +// SExpeditionSetting sExpeditionSetting = STableManager.getConfig(SExpeditionSetting.class).get(1); WorldTreasureReward worldTreasureReward = user.getExpeditionManager().getWorldTreasureReward(); if(worldTreasureReward.getFirstStartTime()>TimeUtils.nowInt()){ return;