|
|
@ -86,11 +86,11 @@ public class orderController { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
ip = request.getHeader("x-forwarded-for"); |
|
|
|
ip = request.getHeader("x-forwarded-for"); |
|
|
|
} |
|
|
|
} |
|
|
|
//
|
|
|
|
|
|
|
|
// if (!apiIpAddressService.validationIpAddressLegal(object.getString("merchId") , ip)) {
|
|
|
|
if (!apiIpAddressService.validationIpAddressLegal(object.getString("merchId") , ip)) { |
|
|
|
// log.error("getRechargeProduct error!", "非法ip地址,请联系管理人员!");
|
|
|
|
log.error("getRechargeProduct error!", "非法ip地址,请联系管理人员!"); |
|
|
|
// throw ErrorHelp.genException(SysCode.System, ErrorCode.IP_ERROR, "非法ip地址,请联系管理人员!");
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.IP_ERROR, "非法ip地址,请联系管理人员!"); |
|
|
|
// }
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ( |
|
|
|
if ( |
|
|
|
StringUtils.isBlank(object.getString("productType")) || |
|
|
|
StringUtils.isBlank(object.getString("productType")) || |
|
|
@ -233,7 +233,6 @@ public class orderController { |
|
|
|
log.error("getRechargeProduct error!", "帐户错误!"); |
|
|
|
log.error("getRechargeProduct error!", "帐户错误!"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.ACCOUNT_NOT_EXIST); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.ACCOUNT_NOT_EXIST); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Map<String , Object> map = new HashMap<>(); |
|
|
|
Map<String , Object> map = new HashMap<>(); |
|
|
|
map.put("mchOrderNo" , object.getString("mchOrderNo")); |
|
|
|
map.put("mchOrderNo" , object.getString("mchOrderNo")); |
|
|
|
map.put("apiKey" , apiMerchants.getApiKey()); |
|
|
|
map.put("apiKey" , apiMerchants.getApiKey()); |
|
|
@ -279,11 +278,11 @@ public class orderController { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
ip = request.getHeader("x-forwarded-for"); |
|
|
|
ip = request.getHeader("x-forwarded-for"); |
|
|
|
} |
|
|
|
} |
|
|
|
//
|
|
|
|
|
|
|
|
// if (!apiIpAddressService.validationIpAddressLegal(object.getString("merchId") , ip)) {
|
|
|
|
if (!apiIpAddressService.validationIpAddressLegal(object.getString("merchId") , ip)) { |
|
|
|
// log.error("getRechargeProduct error!", "非法ip地址,请联系管理人员!");
|
|
|
|
log.error("getRechargeProduct error!", "非法ip地址,请联系管理人员!"); |
|
|
|
// throw ErrorHelp.genException(SysCode.System, ErrorCode.IP_ERROR, "非法ip地址,请联系管理人员!");
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.IP_ERROR, "非法ip地址,请联系管理人员!"); |
|
|
|
// }
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ( |
|
|
|
if ( |
|
|
|
StringUtils.isBlank(object.getString("mchOrderNo")) || |
|
|
|
StringUtils.isBlank(object.getString("mchOrderNo")) || |
|
|
@ -333,10 +332,10 @@ public class orderController { |
|
|
|
ip = request.getHeader("x-forwarded-for"); |
|
|
|
ip = request.getHeader("x-forwarded-for"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// if (!apiIpAddressService.validationIpAddressLegal(object.getString("merchId") , ip)) {
|
|
|
|
if (!apiIpAddressService.validationIpAddressLegal(object.getString("merchId") , ip)) { |
|
|
|
// log.error("getRechargeProduct error!", "非法ip地址,请联系管理人员!");
|
|
|
|
log.error("getRechargeProduct error!", "非法ip地址,请联系管理人员!"); |
|
|
|
// throw ErrorHelp.genException(SysCode.System, ErrorCode.IP_ERROR, "非法ip地址,请联系管理人员!");
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.IP_ERROR, "非法ip地址,请联系管理人员!"); |
|
|
|
// }
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ( |
|
|
|
if ( |
|
|
|
StringUtils.isBlank(object.getString("mchOrderNo")) || |
|
|
|
StringUtils.isBlank(object.getString("mchOrderNo")) || |
|
|
@ -406,10 +405,10 @@ public class orderController { |
|
|
|
ip = request.getHeader("x-forwarded-for"); |
|
|
|
ip = request.getHeader("x-forwarded-for"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// if (!apiIpAddressService.validationIpAddressLegal(object.getString("merchId") , ip)) {
|
|
|
|
if (!apiIpAddressService.validationIpAddressLegal(object.getString("merchId") , ip)) { |
|
|
|
// log.error("getRechargeProduct error!", "非法ip地址,请联系管理人员!");
|
|
|
|
log.error("getRechargeProduct error!", "非法ip地址,请联系管理人员!"); |
|
|
|
// throw ErrorHelp.genException(SysCode.System, ErrorCode.IP_ERROR, "非法ip地址,请联系管理人员!");
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.IP_ERROR, "非法ip地址,请联系管理人员!"); |
|
|
|
// }
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ( |
|
|
|
if ( |
|
|
|
StringUtils.isBlank(object.getString("paySerialNo")) || |
|
|
|
StringUtils.isBlank(object.getString("paySerialNo")) || |
|
|
|