lrf402788946 4 年之前
父节点
当前提交
eded83138d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/controller/weixin.js

+ 1 - 0
app/controller/weixin.js

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