仙充记录线下返利
parent
48f71e6b21
commit
06fdd175e4
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue