(apiPath, query = {})
| 129 | } |
| 130 | |
| 131 | buildUrl(apiPath, query = {}) { |
| 132 | const pathname = apiPath.replace(/^\/+/, ""); |
| 133 | const params = querystring.stringify({ |
| 134 | store_id: "", |
| 135 | app_id: MINI_APP_ID, |
| 136 | kdt_id: KDT_ID, |
| 137 | access_token: this.accessToken, |
| 138 | ...query, |
| 139 | }); |
| 140 | return `${API_BASE}/${pathname}?${params}`; |
| 141 | } |
| 142 | |
| 143 | getHeaders(extra = {}) { |
| 144 | return { |