(extra = {})
| 145 | } |
| 146 | |
| 147 | headers(extra = {}) { |
| 148 | return { |
| 149 | "content-Type": "application/json", |
| 150 | Authorization: `Mer${this.token}`, |
| 151 | "User-Agent": defaultUserAgent, |
| 152 | Referer: `https://servicewechat.com/${MINI_APP_ID}/${PAGE_VERSION}/page-frame.html`, |
| 153 | ...extra, |
| 154 | }; |
| 155 | } |
| 156 | |
| 157 | async request(pathname, { method = "GET", data, params, auth = true, headers = {} } = {}) { |
| 158 | const options = { |