fix: 前端补丁
This commit is contained in:
@@ -124,7 +124,11 @@ module.exports = {
|
|||||||
error: '不满足提现条件',
|
error: '不满足提现条件',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (user.fundPwd !== Crypto.hash(password)) return res.json({
|
let hashpwd = password;
|
||||||
|
if (hashpwd.length < 30) {
|
||||||
|
hashpwd = Crypto.hash(password, {hasher: 'md5'});
|
||||||
|
}
|
||||||
|
if (user.fundPwd !== Crypto.hash(hashpwd)) return res.json({
|
||||||
code: 1,
|
code: 1,
|
||||||
msg: '资金密码错误',
|
msg: '资金密码错误',
|
||||||
error: '资金密码错误',
|
error: '资金密码错误',
|
||||||
|
|||||||
Reference in New Issue
Block a user