修改发货逻辑,兼容海外支付
parent
8e91a247cf
commit
9581b76101
|
|
@ -278,12 +278,18 @@ public class BuyGoodsNewLogic {
|
|||
resultRes.setResultMsg("Session is null");
|
||||
return resultRes;
|
||||
}
|
||||
if (!StringUtil.isNumeric(sdkGoodsId)){
|
||||
if (StringUtil.isEmpty(sdkGoodsId)){
|
||||
resultRes.setResultMsg("sdkGoodsId is error");
|
||||
LOGGER.error("sendGoods 礼包id不是纯数字, uid={}, goodId={}",uid, sdkGoodsId);
|
||||
LOGGER.error("sdkGoodsId empty, uid={}, goodId={}",uid, sdkGoodsId);
|
||||
return resultRes;
|
||||
}
|
||||
SRechargeCommodityNewConfig config = SRechargeCommodityNewConfig.configMap.get(Integer.parseInt(sdkGoodsId));
|
||||
SRechargeCommodityNewConfig config = null;
|
||||
//不是数字通过rechareId获取配置,海外渠道商品id为字符串类型
|
||||
if (!StringUtil.isNumeric(sdkGoodsId)){
|
||||
config = SRechargeCommodityNewConfig.sdkconfigMap.get(sdkGoodsId);
|
||||
}else {
|
||||
config = SRechargeCommodityNewConfig.configMap.get(Integer.parseInt(sdkGoodsId));
|
||||
}
|
||||
if(null == config){
|
||||
resultRes.setResultMsg("SRechargeCommodityNewConfig is null");
|
||||
LOGGER.error("sendGoods 礼包表找不到, uid={}, goodId={}",uid, sdkGoodsId);
|
||||
|
|
|
|||
Loading…
Reference in New Issue