不允许线上使用test支付

back_recharge
duhui 2023-01-29 19:02:54 +08:00
parent 9bd38782f0
commit 1aff9c7871
1 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,7 @@
package com.ljsd.jieling.logic.store;
import com.ljsd.GameApplication;
import com.ljsd.jieling.config.json.ServerProperties;
import com.ljsd.jieling.core.HandlerLogicThread;
import com.ljsd.jieling.core.VipPrivilegeType;
import com.ljsd.jieling.db.mongo.MongoUtil;
@ -124,6 +126,10 @@ public class BuyGoodsNewLogic {
*
*/
public static void testBuyGoods(ISession session,String goodsId) throws Exception {
if (!GameApplication.serverProperties.isDebug()){
LOGGER.error("debug关闭状态线上环境不允许测试支付购买");
return;
}
SRechargeCommodityNewConfig sRechargeCommodityConfig = SRechargeCommodityNewConfig.getConfigById(Integer.parseInt(goodsId));
int uid = session.getUid();
if (sRechargeCommodityConfig == null){