(url, callback)
| 930 | |
| 931 | // 定义 get 方法,用于发送 GET 请求 |
| 932 | const get = (url, callback) => { |
| 933 | if (isLoon || isSurge) $httpClient.get(url, callback); |
| 934 | if (isQX) {url.method = `GET`; $task.fetch(url).then((resp) => callback(null, {}, resp.body))}; |
| 935 | }; |
| 936 | |
| 937 | // 定义 post 方法,用于发送 POST 请求 |
| 938 | const post = (url, callback) => { |