|
|
|
@ -69,6 +69,10 @@ public class ApiIpAddressController { |
|
|
|
|
|
|
|
|
|
ApiIpAddress apiIpAddressEdit = apiIpAddressService.findByMchId(apiIpAddress.getMchId()); |
|
|
|
|
|
|
|
|
|
if (apiIpAddress.getIpAddress().length() > 250) { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "超过最大可配置内容"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 判断是否存在ip地址内容
|
|
|
|
|
if (apiIpAddressEdit == null ) { |
|
|
|
|
apiIpAddress.setCreateTime(new Date()); |
|
|
|
@ -81,7 +85,6 @@ public class ApiIpAddressController { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ResponseMsgUtil.success("新增成功"); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("ApiMerchantsController -> insertMerchant() error!",e); |
|
|
|
|