|
@@ -184,7 +184,7 @@ class WeixinController extends Controller {
|
|
console.warn('-------');
|
|
console.warn('-------');
|
|
console.warn(`openid=>${appopenid}`);
|
|
console.warn(`openid=>${appopenid}`);
|
|
const state = uuid();
|
|
const state = uuid();
|
|
- const key = `appopenid:${state}`;
|
|
|
|
|
|
+ const key = `appinfo:${state}`;
|
|
await this.app.redis.set(key, appopenid, 'EX', 600);
|
|
await this.app.redis.set(key, appopenid, 'EX', 600);
|
|
const res = await this.ctx.service.user.findByAppOpenid(appopenid);
|
|
const res = await this.ctx.service.user.findByAppOpenid(appopenid);
|
|
console.warn({ user: res, openid: appopenid });
|
|
console.warn({ user: res, openid: appopenid });
|