fix 驻扎时间

back_recharge
wangyuan 2019-03-22 17:43:20 +08:00
parent 65f2bd5692
commit 2b06b9ace0
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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();