Browse Source

fix:推送进出记录身份证、手机号去空字符处理

lileilei 2 years ago
parent
commit
e39068f4c5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/com/yx/face/service/impl/FaceTBServiceImpl.java

+ 2 - 2
src/main/java/com/yx/face/service/impl/FaceTBServiceImpl.java

@@ -505,7 +505,7 @@ public class FaceTBServiceImpl implements FaceTBService {
                 photo = data.get("photo").toString();
             }
             if (data.get("cardid") != null) {
-                cardid = data.get("cardid").toString();
+                cardid = data.get("cardid").toString().replaceAll(" ", "");
             }
             if (data.get("cardIdEx") != null) {
                 cardIdEx = data.get("cardIdEx").toString();
@@ -523,7 +523,7 @@ public class FaceTBServiceImpl implements FaceTBService {
                 outtype = (Integer) data.get("outtype");
             }
             if (data.get("phone") != null) {
-                phone = data.get("phone").toString();
+                phone = data.get("phone").toString().replaceAll(" ", "");
             }
             if (data.get("extend3") != null) {
                 extend3 = data.get("extend3").toString();