注释:功能开关和礼包开关 后续优化

back_recharge
xuexinpeng 2021-08-19 15:46:16 +08:00
parent 03672cd509
commit 821d1425f6
2 changed files with 14 additions and 14 deletions

View File

@ -135,13 +135,13 @@ public class HandlerLogicThread extends Thread{
return;
}
//功能协议开关
List<ServerBanPro> banProcoId= MongoUtil.getCoreMongoTemplate().findAll(ServerBanPro.class);
if(banProcoId !=null && banProcoId.size() > 0 ){
if(banProcoId.get(0).getBanProtoId().contains(msgId)){
MessageUtil.sendErrorResponse(session,-1,msgId,"funciton not");
return;
}
}
// List<ServerBanPro> banProcoId= MongoUtil.getCoreMongoTemplate().findAll(ServerBanPro.class);
// if(banProcoId !=null && banProcoId.size() > 0 ){
// if(banProcoId.get(0).getBanProtoId().contains(msgId)){
// MessageUtil.sendErrorResponse(session,-1,msgId,"funciton not");
// return;
// }
// }
session.setLastMsgId(msgId);
SimpleTransaction transaction = SimpleTransaction.setTransaction(session);
BaseHandler baseHandler = ProtocolsManager.getInstance().getHandler(msgId);

View File

@ -861,13 +861,13 @@ private static int judgePushCondition(User user,SPackPushConfig con){
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE);
}
//礼包功能开关
List<ServerBanPro> banProcoId= MongoUtil.getCoreMongoTemplate().findAll(ServerBanPro.class);
if(banProcoId !=null && banProcoId.size() > 0 ){
if(banProcoId.get(0).getBanGoodList().contains(goodsId)){
MessageUtil.sendErrorResponse(session,-1,goodsId,"funciton not");
return;
}
}
// List<ServerBanPro> banProcoId= MongoUtil.getCoreMongoTemplate().findAll(ServerBanPro.class);
// if(banProcoId !=null && banProcoId.size() > 0 ){
// if(banProcoId.get(0).getBanGoodList().contains(goodsId)){
// MessageUtil.sendErrorResponse(session,-1,goodsId,"funciton not");
// return;
// }
// }
//todo 这里要加购买礼包的校验,然后把发货时的校验删掉
String order ;