代码提交

master
Xusan 2024-05-14 11:00:45 +08:00
parent 1626712cee
commit e02196e95f
3 changed files with 90169 additions and 2 deletions

90161
sql/data.sql Normal file

File diff suppressed because it is too large Load Diff

View File

@ -101,8 +101,8 @@ CREATE TABLE "FXKH_TXL"."USER"
"ID" INTEGER IDENTITY(1, 1) NOT NULL,
"USERNAME" VARCHAR(50) NOT NULL,
"PASSWORD" VARCHAR(50) NOT NULL,
"SALT" VARCHAR(50),
"ROLE" CHAR(1) DEFAULT 0,
"SALT" VARCHAR(50) NOT NULL,
"ROLE" VARCHAR(2) DEFAULT 0,
"AB_ID" INTEGER,
"LAST_DATE" DATETIME(0),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

View File

@ -111,4 +111,10 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
private String getPassword(String salt,String password) {
return DigestUtils.md5DigestAsHex((salt + password).getBytes());
}
public static void main(String[] args) {
String salt = UUID.randomUUID().toString().replaceAll("-", "");
System.out.println(salt);
System.out.println(DigestUtils.md5DigestAsHex((salt + DEFAULT_PASSWORD).getBytes()));
}
}