Commit 1a724cc1 authored by 任国军's avatar 任国军

fix token bug

parent dec1aeff
Pipeline #22614 passed with stage
in 3 seconds
......@@ -23,7 +23,7 @@ module.exports = {
}
const token_black = await this.app.memcache.get('course_auth_token_' + decode_res.data.user_uuid);
if (token_black !== token) {
// ctx.throw(401, 'token不一致');
ctx.throw(401, 'token不一致');
}
ctx.setUserUuid(decode_res.data.user_uuid);
ctx.setOpenId(decode_res.data.openid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment