Commit e2739a15 authored by 任国军's avatar 任国军

fix memcache

parent 1da98f6f
Pipeline #17923 passed with stage
in 7 seconds
...@@ -12,7 +12,7 @@ module.exports = (options, app) => { ...@@ -12,7 +12,7 @@ module.exports = (options, app) => {
if (ctx.isEmpty(auth_info)) { if (ctx.isEmpty(auth_info)) {
ctx.failed('user not exist'); ctx.failed('user not exist');
} else { } else {
await app.memcache.set(key, { user_uuid:uuid, openid:auth_info.openid }, 86400 * 7); await ctx.app.memcache.set(key, { user_uuid:uuid, openid:auth_info.openid }, 86400 * 7);
} }
} }
const openid = auth_info.openid; const openid = auth_info.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