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