浏览代码

feat: 添加微信授权登录失败时的openid日志输出

lanjianrong 4 月之前
父节点
当前提交
8032177da8
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/service/weapp.js

+ 2 - 0
app/service/weapp.js

@@ -78,6 +78,8 @@ module.exports = app => {
                 });
                 });
 
 
                 const { openid, errcode } = wxRes.data;
                 const { openid, errcode } = wxRes.data;
+                console.log('openid', openid);
+
 
 
                 if (errcode || !openid) throw '微信授权登录失败';
                 if (errcode || !openid) throw '微信授权登录失败';