Authored by qinchao

恶意ip管理

... ... @@ -138,6 +138,7 @@ public class MaliciousIpServiceImpl implements MaliciousIpService {
*/
@Override
public BaseResponse<List<MaliciousIp>> getMipsFromOpsReids(){
logger.info(" bgin get mips from redis ");
BaseResponse<List<MaliciousIp>> response = new BaseResponse<>();
Set<String> mipKeys= awsRedisTemplate.opsForSet().members(MALICIOUS_IP_SET);
logger.info(" get mips from redis "+mipKeys);
... ... @@ -540,7 +541,7 @@ public class MaliciousIpServiceImpl implements MaliciousIpService {
}
@Override
public BaseResponse<Integer> delIpRule(int id){
public BaseResponse<Integer> delIpRule(int id) {
try{
logger.info("delIpRule id : " + id);
int result = 0;
... ...