猎妖之路状态推送
parent
e190010e72
commit
73b6bdaa8a
|
@ -179,10 +179,6 @@ 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);
|
||||
nodeInfos.add(CommonProto.ExpeditionNodeInfo.newBuilder()
|
||||
.setSortId(nodeInfo1.getSortId())
|
||||
.setState(state)
|
||||
.build());
|
||||
|
||||
if(nodeInfo1.getType()==ExpeditionLogic.NODETYPE_SHOP&&newlay==nodeInfo1.getLay()){
|
||||
try {
|
||||
|
@ -194,9 +190,13 @@ public class ExpeditionLogic {
|
|||
}
|
||||
|
||||
//最后的奖励节点 前端显示跳转入口用
|
||||
if(nodeInfo1.getType()==ExpeditionLogic.NODETYPE_REWARD){
|
||||
if( nodeInfo1.getLay() == oldlay&&nodeInfo1.getType()==ExpeditionLogic.NODETYPE_REWARD){
|
||||
nodeInfo1.setState(ExpeditionLogic.NODESTATE_NOT_GET);
|
||||
}
|
||||
nodeInfos.add(CommonProto.ExpeditionNodeInfo.newBuilder()
|
||||
.setSortId(nodeInfo1.getSortId())
|
||||
.setState(nodeInfo1.getState())
|
||||
.build());
|
||||
|
||||
});
|
||||
//updata lay
|
||||
|
|
Loading…
Reference in New Issue