lrf402788946 4 năm trước cách đây
mục cha
commit
15f1c28857
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/controller/weixin.js

+ 1 - 1
app/controller/weixin.js

@@ -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);
   }
 }