lrf402788946 4 yıl önce
ebeveyn
işleme
15f1c28857
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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);
   }
 }