lrf402788946 4 years ago
parent
commit
0054752fa3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/service/wxpay.js

+ 1 - 0
app/service/wxpay.js

@@ -22,6 +22,7 @@ class WxpayService extends CrudService {
     console.log(`token=>${token}`);
     if (token) return;
     const url = ({ id, secret }) => `https://api.weixin.qq.com/sns/jscode2session?appid=${id}&secret=${secret}&js_code=${code}&grant_type=authorization_code`;
+    console.log(`url=>${url(this.appInfo)}`);
     const res = await this.ctx.curl(url(this.appInfo), {
       method: 'get',
       dataType: 'json',