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

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; return;
} }
//功能协议开关 //功能协议开关
List<ServerBanPro> banProcoId= MongoUtil.getCoreMongoTemplate().findAll(ServerBanPro.class); // List<ServerBanPro> banProcoId= MongoUtil.getCoreMongoTemplate().findAll(ServerBanPro.class);
if(banProcoId !=null && banProcoId.size() > 0 ){ // if(banProcoId !=null && banProcoId.size() > 0 ){
if(banProcoId.get(0).getBanProtoId().contains(msgId)){ // if(banProcoId.get(0).getBanProtoId().contains(msgId)){
MessageUtil.sendErrorResponse(session,-1,msgId,"funciton not"); // MessageUtil.sendErrorResponse(session,-1,msgId,"funciton not");
return; // return;
} // }
} // }
session.setLastMsgId(msgId); session.setLastMsgId(msgId);
SimpleTransaction transaction = SimpleTransaction.setTransaction(session); SimpleTransaction transaction = SimpleTransaction.setTransaction(session);
BaseHandler baseHandler = ProtocolsManager.getInstance().getHandler(msgId); 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); throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE);
} }
//礼包功能开关 //礼包功能开关
List<ServerBanPro> banProcoId= MongoUtil.getCoreMongoTemplate().findAll(ServerBanPro.class); // List<ServerBanPro> banProcoId= MongoUtil.getCoreMongoTemplate().findAll(ServerBanPro.class);
if(banProcoId !=null && banProcoId.size() > 0 ){ // if(banProcoId !=null && banProcoId.size() > 0 ){
if(banProcoId.get(0).getBanGoodList().contains(goodsId)){ // if(banProcoId.get(0).getBanGoodList().contains(goodsId)){
MessageUtil.sendErrorResponse(session,-1,goodsId,"funciton not"); // MessageUtil.sendErrorResponse(session,-1,goodsId,"funciton not");
return; // return;
} // }
} // }
//todo 这里要加购买礼包的校验,然后把发货时的校验删掉 //todo 这里要加购买礼包的校验,然后把发货时的校验删掉
String order ; String order ;