Commit 1a948058 authored by Qingsong Li's avatar Qingsong Li

fix query ip result issue

parent 9d7b3f26
......@@ -181,7 +181,7 @@ public class BrowserTask {
HttpMethod.GET, entity, IpInfoResultDto.class, "browser", ipResource.getAddr());
IpInfoResultDto ipInfoResultDto = result.getBody();
if (ipInfoResultDto != null && StringUtils.isBlank(ipInfoResultDto.getErrorCode())) {
if ( StringUtils.isNoneEmpty(ipInfoResultDto.getStatus())) {
if ( StringUtils.isNotEmpty(ipInfoResultDto.getStatus())) {
ipResource.setStatus(0);
ipResourceRepository.save(ipResource);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment