Browse Source

处理errCode

FanQun 2 years ago
parent
commit
981bd0d898

+ 2 - 2
src/main/java/com/rshy/project/hy/server/ItfwServer.java

@@ -779,7 +779,7 @@ public class ItfwServer {
 
         log.info("证件照片接口服务响应信息:{}", body);
 
-        if (StrUtil.isEmpty(body)) {
+        if (StrUtil.isEmpty(body) || body.contains("errCode")) {
             return null;
         }
         PctzjzpResultDTO pctzjzpResultDTO = JSON.parseObject(body, PctzjzpResultDTO.class);
@@ -843,7 +843,7 @@ public class ItfwServer {
 
         log.info("杭州市重点人员底库数据查询接口服务响应信息:{}", body);
         deleteKeys(cacheStatusKey);
-        if (StrUtil.isEmpty(body)) {
+        if (StrUtil.isEmpty(body) || body.contains("errCode")) {
             return null;
         }
         PctzdrydkResultDTO pctzdrydkResultDTO = JSON.parseObject(body, PctzdrydkResultDTO.class);

+ 1 - 1
src/main/java/com/rshy/project/hy/web/controller/RshyController.java

@@ -46,7 +46,7 @@ public class RshyController {
 
     @GetMapping(value = "/version")
     public String version() {
-        return "1.2.4.220524";
+        return "1.2.4.220607";
     }
 
     @ApiOperation("普通核验模式")