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