Authored by 孟令阶

add

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