guhongwei 4 년 전
부모
커밋
5ea1af4ca4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);