master_haizei01
parent
b01eb7517a
commit
b5a179b74b
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue