App用户注册完自动登录

This commit is contained in:
2023-08-15 19:12:18 +08:00
parent c7050e9747
commit 422e7ef9d9
6 changed files with 44 additions and 33 deletions

View File

@@ -462,7 +462,7 @@ public class PubUtils {
* 生成随机推荐码
*/
public static String getCode(Integer number){
final String BASIC = "123456789AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZZ";
final String BASIC = "123456789AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz";
char[] basicArray = BASIC.toCharArray();
Random random = new Random();
char[] result = new char[number];