()
| 115 | } |
| 116 | |
| 117 | headers() { |
| 118 | return { |
| 119 | "content-type": "application/x-www-form-urlencoded", |
| 120 | "platform": "MP-WEIXIN", |
| 121 | "User-Agent": USER_AGENT, |
| 122 | "Referer": `https://servicewechat.com/${MINI_APP_ID}/${PAGE_VERSION}/page-frame.html`, |
| 123 | }; |
| 124 | } |
| 125 | |
| 126 | async request(apiPath, data = {}, options = {}) { |
| 127 | const token = options.noauth ? GUEST_TOKEN : (this.session.token || GUEST_TOKEN); |