(extra = {})
| 118 | } |
| 119 | |
| 120 | getHeaders(extra = {}) { |
| 121 | const headers = { |
| 122 | "User-Agent": USER_AGENT, |
| 123 | "Referer": `https://servicewechat.com/${MINI_APP_ID}/39/page-frame.html`, |
| 124 | "Accept": "application/json, text/plain, */*", |
| 125 | ...extra, |
| 126 | }; |
| 127 | if (this.authorization) headers.Authorization = this.authorization; |
| 128 | return headers; |
| 129 | } |
| 130 | |
| 131 | async request({ method = "GET", apiPath, params = {}, data = {}, skipToken = false }) { |
| 132 | const options = { |