充值接口屏蔽

zhangshanxue 2019-12-08 11:30:53 +08:00
parent 8e959d450b
commit d207c33e28
1 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,7 @@
package com.ljsd.jieling.handler.store;
import com.ljsd.GameApplication;
import com.ljsd.jieling.exception.ErrorCodeException;
import com.ljsd.jieling.handler.BaseHandler;
import com.ljsd.jieling.logic.store.BuyGoodsLogic;
import com.ljsd.jieling.netty.cocdex.PacketNetData;
@ -17,6 +19,11 @@ public class TestBuyGiftGoodsHandler extends BaseHandler {
@Override
public void process(ISession iSession, PacketNetData netData) throws Exception {
if(!GameApplication.serverProperties.isDebug()){
throw new ErrorCodeException("In a formal setting");
}
PlayerInfoProto.TestBuyGiftGoodsRequest testBuyGiftGoodsRequest = PlayerInfoProto.TestBuyGiftGoodsRequest.parseFrom(netData.parseClientProtoNetData());
BuyGoodsLogic.testBuyGoods(iSession,testBuyGiftGoodsRequest.getGoodsId());
}