Merge branch 'master_test_gn' of http://60.1.1.230/backend/jieling_server into master_test_gn
commit
2392506183
|
@ -23,7 +23,7 @@ public class HeroGodSoulBindRequestHandler extends BaseHandler<HeroInfoProto.Her
|
|||
return MessageTypeProto.MessageType.HERO_GOD_SOUL_BIND_REQUEST;
|
||||
}
|
||||
|
||||
//神魂进阶绑定协议
|
||||
//神魂升级绑定协议
|
||||
@Override
|
||||
public void processWithProto(ISession session, HeroInfoProto.HeroGodSoulBindRequest proto) throws Exception {
|
||||
String heroId=proto.getHeroId();
|
||||
|
|
|
@ -304,6 +304,7 @@ public class GlobalDataManaager implements IManager {
|
|||
|
||||
public void getTimeOfControl(ISession session){
|
||||
MessageUtil.sendMessage(session,1, MessageTypeProto.MessageType.GET_FUNCTIONOFTIME_RESPONSE_VALUE,getFunctionOfTimeResponse,true);
|
||||
|
||||
}
|
||||
|
||||
private void updateGetFunctionOfTimeResponse(){
|
||||
|
@ -321,6 +322,15 @@ public class GlobalDataManaager implements IManager {
|
|||
long timeOpenOfThis =seasonOpenLong;
|
||||
long timeCloseOfThis =seasonEndLong;
|
||||
if(seasonInterval == 0){
|
||||
int[]limitDay = sGlobalSystemConfig.getIfOpen();
|
||||
if(limitDay != null && limitDay.length>0){
|
||||
if( limitDay[0] == 2 ){
|
||||
long day = TimeUtils.getGapDaysByTwoTime(GameApplication.serverConfig.getOpenTime(),TimeUtils.getTimeStamp2(TimeUtils.now()))+1;
|
||||
if(day < limitDay[1]){
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
timeOpenOfThis = systemOpenLong;
|
||||
timeCloseOfThis = systemEndLong;
|
||||
}else{
|
||||
|
|
|
@ -79,6 +79,7 @@ public class WeekCardLogic {
|
|||
weekCardVal.setBugTime(0);
|
||||
isSave = true;
|
||||
}
|
||||
}
|
||||
if(isSave){
|
||||
user.getPlayerInfoManager().setWeekCard(weekCard);
|
||||
}
|
||||
|
@ -91,7 +92,6 @@ public class WeekCardLogic {
|
|||
StringUtil.parseArrayToString(dropArray), TimeUtils.nowInt(), Global.MAIL_EFFECTIVE_TIME);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public List<CommonProto.WeekCard> initAllWeekCardInfo(User user) throws Exception{
|
||||
long time= user.getPlayerInfoManager().getWeekCardTimeFirst();
|
||||
|
|
Loading…
Reference in New Issue