admin
2020-05-06 24a8d17e007545f7426c48352109aa1a9c6587ee
fanli/src/main/java/com/yeshi/fanli/util/account/UserUtil.java
@@ -75,9 +75,9 @@
                  + "/client/threeShareNew?uid=" + uid + "&_=" + java.lang.System.currentTimeMillis());
   }
   public static String getInviteCode(Long uid) {
   public static String getInviteCode(int base, Long uid) {
      long num = 1000000000L + uid;
      long num = base * 100000000L + uid;
      return convert10To36(num);
   }
@@ -134,7 +134,7 @@
               name = dest.getName().charAt(0) + "*";
            dest.setName(name);
            String account =filterAlipayAccount(dest.getAccount());
            String account = filterAlipayAccount(dest.getAccount());
            dest.setAccount(account);
         }
@@ -179,4 +179,24 @@
      return account;
   }
   public static String filterAlipayName(String name) {
      String st = "";
      for (int i = 0; i < name.length(); i++) {
         if (i == 0)
            st += name.charAt(i);
         else
            st += "*";
      }
      return st;
   }
   public static String filterOrderId(String orderId) {
      if (orderId == null || orderId.length() <= 6)
         return orderId;
      if (orderId.length() <= 16) {// 隐藏2位
         return orderId.substring(0, orderId.length() - 2) + "**";
      } else {// 隐藏6位
         return orderId.substring(0, orderId.length() - 6) + "******";
      }
   }
}