|
@@ -226,13 +226,14 @@ const encryptionLogin = () => {
|
|
|
const passwordTrim = trimCompat(state.ruleForm.password);
|
|
|
const usernameMesCode = trimCompat(state.ruleForm.msgCode);
|
|
|
const timestamp = Math.floor(new Date().getTime() / 1000); // 秒
|
|
|
+ const guidStr = guid(); // 随机数
|
|
|
// 加密数据
|
|
|
const submitObj = {
|
|
|
username: usernameTrim, // 用户名
|
|
|
password: passwordTrim, // 密码
|
|
|
msgCode: usernameMesCode, // 验证码
|
|
|
timestamp, // 时间戳
|
|
|
- nonce: guid(), // 随机数
|
|
|
+ nonce: guidStr, // 随机数
|
|
|
};
|
|
|
const encrypted = CryptoJS.AES.encrypt(JSON.stringify(submitObj), key1, {
|
|
|
// 加密
|