|
@@ -206,6 +206,7 @@ class WeixinController extends Controller {
|
|
|
const { js_code, login = true } = this.ctx.query;
|
|
|
const appopenid = await this.ctx.service.weixin.appAuth(js_code);
|
|
|
if (!login) this.ctx.ok(appopenid);
|
|
|
+ console.warn('-------');
|
|
|
console.warn(`openid=>${appopenid}`);
|
|
|
const res = await this.ctx.service.user.findByAppOpenid(appopenid);
|
|
|
console.warn(res);
|