diff --git a/src/modules/fund/fund.controller.js b/src/modules/fund/fund.controller.js index d4781fa..0ab3c24 100644 --- a/src/modules/fund/fund.controller.js +++ b/src/modules/fund/fund.controller.js @@ -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: '资金密码错误',