fix 驻扎时间
parent
65f2bd5692
commit
2b06b9ace0
|
@ -207,7 +207,7 @@ public class CombatLogic {
|
|||
totalForce += HeroLogic.getInstance().calHeoForce(user,hero);
|
||||
}
|
||||
|
||||
adventureManager.station(new AdventureStateInfo(position,heroIds,(int)(System.currentTimeMillis()),hourDuration,totalForce,myRecommendHeroSize),allowTime);
|
||||
adventureManager.station(new AdventureStateInfo(position,heroIds,(int)(System.currentTimeMillis()/1000),hourDuration,totalForce,myRecommendHeroSize),allowTime);
|
||||
|
||||
//发送成功
|
||||
MessageUtil.sendMessage(session,1, MessageTypeProto.MessageType.ADVENTURE_STATION_RESPONSE_VALUE,null,true);
|
||||
|
|
|
@ -84,7 +84,8 @@ public class CBean2Proto {
|
|||
if(adventureStateInfo!=null){
|
||||
int startTime = adventureStateInfo.getStartTime();
|
||||
int now = (int)(System.currentTimeMillis()/1000);
|
||||
builder.setPositionId(adventureStateInfo.getPosition())
|
||||
builder.addAllHeroIdList(adventureStateInfo.getHeroIds())
|
||||
.setHourDuration(adventureStateInfo.getHourDuration())
|
||||
.setRemainTime((now - startTime ));
|
||||
}
|
||||
return builder.build();
|
||||
|
|
Loading…
Reference in New Issue