guhongwei 4 years ago
parent
commit
5ea1af4ca4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/weixin.js

+ 1 - 1
app/service/weixin.js

@@ -23,7 +23,7 @@ class WeixinAuthService extends AxiosService {
       throw new BusinessError(ErrorCode.SERVICE_FAULT, '获得微信认证信息失败');
     }
     const { openid } = res;
-    console.log('1res' + res.toString());
+    console.log('1res' + JSON.stringify(res));
     // TODO: 获得用户信息
     res = await this.httpGet('/api.weixin.qq.com/cgi-bin/user/info?lang=zh_CN', { appid: wxapi.appid, openid });
     // console.debug('res: ', res);