车迟上次玩的时间
parent
f4170fc273
commit
5632169a45
|
@ -28,6 +28,7 @@ import config.SErrorCodeEerverConfig;
|
|||
import config.SWorldBossConfig;
|
||||
import config.SWorldBossSetting;
|
||||
import manager.STableManager;
|
||||
import util.TimeUtils;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
@ -130,6 +131,7 @@ public class FastChallengeHandler extends BaseHandler<FightInfoProto.FastFightCh
|
|||
throw new ErrorCodeException(ErrorCode.SERVER_DEFINE);
|
||||
|
||||
}
|
||||
user.getGuildMyInfo().setCarPlayTime(TimeUtils.nowInt());
|
||||
FightInfoProto.FastFightChallengeResponse build = FightInfoProto.FastFightChallengeResponse.newBuilder().setHurt(hurt).setScore(gainScore).setFightData(fightData).build();
|
||||
MessageUtil.sendMessage(iSession,1, MessageTypeProto.MessageType.FAST_FIGHT_CHALLENGE_RESPONSE_VALUE,build,true);
|
||||
}
|
||||
|
|
|
@ -35,6 +35,8 @@ public class GuildMyInfo extends MongoBase {
|
|||
private boolean guildHelpReward;//公会奖励
|
||||
private long guildHelpSendTime;//公会求助信息时间 5分钟
|
||||
|
||||
private int carPlayTime; //车迟上次玩的时间
|
||||
|
||||
|
||||
|
||||
public void clearOfLevelGuild(){
|
||||
|
@ -256,4 +258,13 @@ public class GuildMyInfo extends MongoBase {
|
|||
this.guildHelpSendTime = guildHelpSendTime;
|
||||
updateString("guildHelpSendTime",guildHelpSendTime);
|
||||
}
|
||||
|
||||
public void setCarPlayTime(int carPlayTime) {
|
||||
this.carPlayTime = carPlayTime;
|
||||
updateString("carPlayTime",carPlayTime);
|
||||
}
|
||||
|
||||
public int getCarPlayTime() {
|
||||
return carPlayTime;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -149,6 +149,7 @@ public class GuildLogic {
|
|||
}
|
||||
}
|
||||
builder.setCarDelayProgressIndication(GuildFightLogic.carDelayProgressIndication);
|
||||
builder.setCarPlayTime(user.getGuildMyInfo().getCarPlayTime());
|
||||
MessageUtil.sendMessage(session,1,msgId,builder.build(),true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue