|
@@ -58,8 +58,6 @@ class WeixinAuthService extends AxiosService {
|
|
|
if (req.errcode && req.errcode !== 0) throw new BusinessError(ErrorCode.SERVICE_FAULT, 'openid获取失败');
|
|
|
const openid = _.get(req, 'openid');
|
|
|
console.log('已获取openid信息');
|
|
|
- // const access_token = await this.app.redis.get(this.access_tokenKey);
|
|
|
- // if (!access_token) await this.app.redis.set(this.access_tokenKey, _.get(req, 'access_token'), 'EX', 6000);
|
|
|
if (!openid) {
|
|
|
this.ctx.logger.error(JSON.stringify(req.data));
|
|
|
throw new BusinessError(ErrorCode.SERVICE_FAULT, '未获取到openid');
|