| | |
| | | + "/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);
|
| | | }
|
| | |
| | | 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) {// 隐藏3位
|
| | | return orderId.substring(0, orderId.length() - 3) + "***";
|
| | | if (orderId.length() <= 16) {// 隐藏2位
|
| | | return orderId.substring(0, orderId.length() - 2) + "**";
|
| | | } else {// 隐藏6位
|
| | | return orderId.substring(0, orderId.length() - 6) + "******";
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | }
|