Kaynağa Gözat

feat : 实名认证列表去掉身份证号查询条件

bilingfeng 2 yıl önce
ebeveyn
işleme
ad87070f6e

+ 3 - 3
game-module/game-mybatis/src/main/java/com/zanxiang/mybatis/entity/UserCard.java

@@ -91,7 +91,7 @@ public class UserCard {
         if (Strings.isBlank(this.cardId)) {
             return null;
         }
-        return this.cardId.substring(0, 3) + "***" + this.cardId.substring(this.cardId.length() - 3);
+        return this.cardId.substring(0, 3) + " *** " + this.cardId.substring(this.cardId.length() - 3);
     }
 
     /**
@@ -105,9 +105,9 @@ public class UserCard {
         }
         //两个字得名字
         if (this.cardName.length() <= 2) {
-            return this.cardName.substring(0, 1) + "*";
+            return this.cardName.substring(0, 1) + " * ";
         }
         //两个字以上得名字, 显示头尾
-        return this.cardName.substring(0, 1) + "*" + this.cardName.substring(this.cardName.length() - 1);
+        return this.cardName.substring(0, 1) + " * " + this.cardName.substring(this.cardName.length() - 1);
     }
 }