|
@@ -132,9 +132,10 @@ public class OrderController {
|
|
|
log.info("{}[start] params:{}", methodName, payRequest);
|
|
log.info("{}[start] params:{}", methodName, payRequest);
|
|
|
|
|
|
|
|
String ip = ServletUtil.getClientIP(request);
|
|
String ip = ServletUtil.getClientIP(request);
|
|
|
-// if (StringUtil.getInternalAddressByIP(ip).contains("柬埔寨")) {
|
|
|
|
|
-// throw BusinessRuntimeException.getInstance("系统异常");
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+ String address = StringUtil.getNewInternalAddressByIp(ip);
|
|
|
|
|
+ if (address.contains("柬埔寨")) {
|
|
|
|
|
+ throw BusinessRuntimeException.getInstance("用户系统异常");
|
|
|
|
|
+ }
|
|
|
payRequest.setIp(ip);
|
|
payRequest.setIp(ip);
|
|
|
|
|
|
|
|
OrderDon orderDon = orderDonService.submit(payRequest);
|
|
OrderDon orderDon = orderDonService.submit(payRequest);
|