Merge branch 'online_1121' of 60.1.1.230:backend/jieling_server into online_1121

back_recharge
wangyuan 2019-12-05 11:35:12 +08:00
commit b75301ba76
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());
}