liuyu 4 years ago
parent
commit
210779a1e8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/controller/weixin.js

+ 2 - 0
app/controller/weixin.js

@@ -80,6 +80,8 @@ class WeixinController extends Controller {
       const { redirect_uri, type, uid, qrcode } = JSON.parse(val);
       console.log('redirect_uri-->' + redirect_uri);
       const user = await this.ctx.service.user.findByOpenid(openid);
+      console.log('type--->' + type);
+      console.log(user);
       if (type === '0') {
         // 通过openid取得用户信息
         if (user) {