lrf402788946 4 年之前
父节点
当前提交
15f1c28857
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
   }
 }