...
|
...
|
@@ -135,7 +135,19 @@ public class MaliciousIpServiceImpl implements MaliciousIpService { |
|
|
logger.error("MaliciousIpServiceImpl writeBannedMipsOpsDB failed", e);
|
|
|
}
|
|
|
|
|
|
String smsStr = "成功捕获恶意ip--->" + ip ;
|
|
|
String smsStr = "成功捕获恶意ip--->" + ip + ",接口列表[";
|
|
|
JSONObject json = JSONObject.parseObject(reason);
|
|
|
if (json != null && !json.isEmpty()) {
|
|
|
JSONObject methodDetail = jo.getJSONObject("methodDetail");
|
|
|
if (methodDetail != null && !methodDetail.isEmpty()) {
|
|
|
for (Map.Entry<String, Object> entry : methodDetail.entrySet()) {
|
|
|
smsStr += entry.getKey() + ":" + entry.getValue() + ",";
|
|
|
}
|
|
|
smsStr = smsStr.substring(0, smsStr.length() - 1);
|
|
|
}
|
|
|
}
|
|
|
smsStr += "]";
|
|
|
|
|
|
alarmMsgService.sendSms("MaliciousIp", smsStr, mobile_yunwei);
|
|
|
logger.info("MaliciousIpServiceImpl writeBannedMipsOpsDB - "+ip);
|
|
|
}
|
...
|
...
|
|