仙充记录线下返利

back_recharge
duhui 2023-02-02 03:47:14 +08:00
parent 48f71e6b21
commit 06fdd175e4
1 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,8 @@ import com.ljsd.jieling.exception.ErrorCode;
import com.ljsd.jieling.exception.ErrorCodeException;
import com.ljsd.jieling.globals.BIReason;
import com.ljsd.jieling.handler.BaseHandler;
import com.ljsd.jieling.logic.activity.event.AutoRechargeBackEvent;
import com.ljsd.jieling.logic.activity.event.Poster;
import com.ljsd.jieling.logic.dao.UserManager;
import com.ljsd.jieling.logic.dao.root.User;
import com.ljsd.jieling.logic.store.BuyGoodsNewLogic;
@ -54,6 +56,11 @@ public class GmBuyGoodHandler extends BaseHandler<PlayerInfoProto.GmBuyGoodReque
if (!cost){
throw new ErrorCodeException(ErrorCode.ITEM_NOT_ENOUGH);
}
// 仙充记录线下返利
if (master.getType() == 8){
Poster.getPoster().dispatchEvent(new AutoRechargeBackEvent(user.getId(),goodsId,"gm_modifier"));
}
// 走礼包逻辑发送奖励
BuyGoodsNewLogic.gmBuyGoods(iSession, goodsId);
}