fix: 前端补丁

This commit is contained in:
chaosBreaking
2019-09-30 10:53:55 +08:00
parent 17e7a34909
commit 0638a4cc5b

View File

@@ -124,7 +124,11 @@ module.exports = {
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,
msg: '资金密码错误',
error: '资金密码错误',