|
|
@@ -798,6 +798,7 @@ module.exports = app => {
|
|
|
const code = ctx.request.body.code;
|
|
|
const cacheKey = 'smsCode:' + ctx.session.sessionUser.accountId;
|
|
|
const cacheCode = await app.redis.get(cacheKey);
|
|
|
+ const pa = await ctx.service.projectAccount.getDataById(ctx.session.sessionUser.accountId);
|
|
|
if (cacheCode === null || code === undefined || cacheCode !== (code + pa.auth_mobile)) {
|
|
|
throw '验证码不正确!';
|
|
|
}
|