master_haizei01
grimm 2024-06-03 11:24:10 +08:00
parent b01eb7517a
commit b5a179b74b
1 changed files with 40 additions and 35 deletions

View File

@ -887,7 +887,8 @@ public class BuyGoodsNewLogic {
/**
*
*/
public static void openPush(ISession session,User user,int type,int star) throws Exception{
public static void openPush(ISession session,User user,int type,int star){
try {
NewRechargeInfo info = user.getPlayerInfoManager().getNewRechargeInfo();
List<SPackPushConfig> list = SPackPushConfig.findConfigByCon(type,star);
if(list == null){
@ -925,6 +926,10 @@ public class BuyGoodsNewLogic {
PlayerInfoProto.PushWelfareResponse pushWelfareResponse = PlayerInfoProto.PushWelfareResponse.newBuilder().addId(bagId).build();
MessageUtil.sendIndicationMessage(session, 1, MessageTypeProto.MessageType.PUSH_WELFARE_RESPONSE.getNumber(), pushWelfareResponse, true);
}
}catch (Exception e){
e.printStackTrace();
LOGGER.error("创建推送礼包报错uid{}触发礼包id{}type{}, 异常:{}",user.getId(), star, type, e.getMessage());
}
}
private static int judgePushCondition(User user,SPackPushConfig con){