观星开启
parent
f36c71cada
commit
abd7ebd875
|
@ -38,6 +38,7 @@ public enum FunctionIdEnum {
|
||||||
Endless(46),
|
Endless(46),
|
||||||
Blood(47),
|
Blood(47),
|
||||||
ToBeStronger(48),
|
ToBeStronger(48),
|
||||||
|
SoulEquip(52),
|
||||||
WorkShopTech(101),
|
WorkShopTech(101),
|
||||||
WorkShopCreateEquip(102),
|
WorkShopCreateEquip(102),
|
||||||
WorkShopCreateProtectEquip(103),
|
WorkShopCreateProtectEquip(103),
|
||||||
|
|
|
@ -278,6 +278,13 @@ public class HandlerLogicThread extends Thread{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case MessageTypeProto.MessageType.SOUL_RAND_EQUIP_REQUEST_VALUE:
|
||||||
|
case MessageTypeProto.MessageType.SOUL_FORCE_RAND_EQUIP_REQUEST_VALUE:
|
||||||
|
sGlobalSystemConfig = SGlobalSystemConfig.getsGlobalSystemConfigByFunctionId(FunctionIdEnum.SoulEquip);
|
||||||
|
if (checkOpen(user,sGlobalSystemConfig)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|
|
@ -12,6 +12,7 @@ import com.ljsd.jieling.handler.map.MapManager;
|
||||||
import com.ljsd.jieling.logic.GlobalDataManaager;
|
import com.ljsd.jieling.logic.GlobalDataManaager;
|
||||||
import com.ljsd.jieling.logic.activity.ActivityLogic;
|
import com.ljsd.jieling.logic.activity.ActivityLogic;
|
||||||
import com.ljsd.jieling.logic.dao.*;
|
import com.ljsd.jieling.logic.dao.*;
|
||||||
|
import com.ljsd.jieling.logic.dao.root.GlobalSystemControl;
|
||||||
import com.ljsd.jieling.logic.dao.root.User;
|
import com.ljsd.jieling.logic.dao.root.User;
|
||||||
import com.ljsd.jieling.logic.hotfix.DoFix;
|
import com.ljsd.jieling.logic.hotfix.DoFix;
|
||||||
import com.ljsd.jieling.logic.player.PlayerLogic;
|
import com.ljsd.jieling.logic.player.PlayerLogic;
|
||||||
|
@ -117,8 +118,9 @@ public class GetPlayerInfoHandler extends BaseHandler{
|
||||||
}
|
}
|
||||||
//问卷状态
|
//问卷状态
|
||||||
int questState =-1;
|
int questState =-1;
|
||||||
if(user.getQuestionManager().getQuestId()!=0){
|
GlobalSystemControl globalSystemControl = GlobalSystemControl.getGlobalSystemControl();
|
||||||
questState=user.getQuestionManager().getQuestState();
|
if(globalSystemControl.getQuestId()!=0 && user.getQuestionManager().getQuestId()!=0){
|
||||||
|
questState=user.getQuestionManager().getQuestState();
|
||||||
}
|
}
|
||||||
//图鉴信息
|
//图鉴信息
|
||||||
Set<Integer> heroHandBookSet = user.getHeroManager().getHeroHandBook().keySet();
|
Set<Integer> heroHandBookSet = user.getHeroManager().getHeroHandBook().keySet();
|
||||||
|
|
|
@ -125,13 +125,17 @@ public class QuestionLogic {
|
||||||
user.getQuestionManager().setQuestId(qid);
|
user.getQuestionManager().setQuestId(qid);
|
||||||
user.getQuestionManager().setQuestState(0);
|
user.getQuestionManager().setQuestState(0);
|
||||||
ISession sessionByUid = OnlineUserManager.getSessionByUid(user.getId());
|
ISession sessionByUid = OnlineUserManager.getSessionByUid(user.getId());
|
||||||
|
if(null ==sessionByUid){
|
||||||
|
return;
|
||||||
|
}
|
||||||
MessageUtil.sendIndicationMessage(sessionByUid, 1, MessageTypeProto.MessageType.QUESTION_INDICATION_VALUE, builder, true);
|
MessageUtil.sendIndicationMessage(sessionByUid, 1, MessageTypeProto.MessageType.QUESTION_INDICATION_VALUE, builder, true);
|
||||||
}
|
}
|
||||||
}, new ArrayList<>(OnlineUserManager.sessionMap.keySet()), 120);
|
}, new ArrayList<>(OnlineUserManager.sessionMap.keySet()), 120);
|
||||||
}
|
}
|
||||||
if (isNeedUp) {
|
|
||||||
MongoUtil.getInstence().getMyMongoTemplate().save(globalSystemControl);
|
}
|
||||||
}
|
if (isNeedUp) {
|
||||||
|
MongoUtil.getInstence().getMyMongoTemplate().save(globalSystemControl);
|
||||||
}
|
}
|
||||||
//remove
|
//remove
|
||||||
for (Integer id:remove) {
|
for (Integer id:remove) {
|
||||||
|
|
Loading…
Reference in New Issue