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

+ 0 - 2
app/service/weixin.js

@@ -43,7 +43,6 @@ class WeixinAuthService extends AxiosService {
       backUrl = encodeURI(`${this.ctx.protocol}://${this.ctx.host}${this.authBackUrl}?state=${state}`);
     }
     const to_uri = `${baseUrl}/api/auth?appid=${appid}&response_type=code&redirect_uri=${backUrl}#wechat`;
-    console.log(to_uri);
     this.ctx.redirect(to_uri);
   }
 
@@ -52,7 +51,6 @@ class WeixinAuthService extends AxiosService {
    * @param {Object} query 参数
    */
   async authBack(query) {
-    console.log(query);
     const { code, state } = query;
     if (!code) throw new BusinessError(ErrorCode.SERVICE_FAULT, '授权未成功');
     const req = await this.httpGet('/api/fetch', { code });