Skip to content

Commit 626604e

Browse files
authored
Update 10010.js
1 parent 93fdfc1 commit 626604e

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

‎10010/10010.js‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -228,23 +228,23 @@ function init() {
228228
// if (url.hasOwnProperty['headers'] && url['headers'].hasOwnProperty('Content-Length'))
229229
console.log("66666666666")
230230
}
231-
// if (isSurge()) {
232-
// $httpClient.get(url, cb)
233-
// }
234-
// if (isQuanX()) {
235-
// url.method = 'GET'
236-
// $task.fetch(url).then((resp) => cb(null, resp, resp.body))
237-
// }
231+
if (isSurge()) {
232+
$httpClient.get(url, cb)
233+
}
234+
if (isQuanX()) {
235+
url.method = 'GET'
236+
$task.fetch(url).then((resp) => cb(null, resp, resp.body))
237+
}
238238
}
239239
post = (url, cb) => {
240-
// if (url.hasOwnProperty['headers'] && url['headers'].hasOwnProperty('Content-Length')) delete url['headers']['Content-Length']
241-
// if (isSurge()) {
242-
// $httpClient.post(url, cb)
243-
// }
244-
// if (isQuanX()) {
245-
// url.method = 'POST'
246-
// $task.fetch(url).then((resp) => cb(null, resp, resp.body))
247-
// }
240+
if (url.hasOwnProperty['headers'] && url['headers'].hasOwnProperty('Content-Length')) delete url['headers']['Content-Length']
241+
if (isSurge()) {
242+
$httpClient.post(url, cb)
243+
}
244+
if (isQuanX()) {
245+
url.method = 'POST'
246+
$task.fetch(url).then((resp) => cb(null, resp, resp.body))
247+
}
248248
}
249249
done = (value = {}) => {
250250
$done(value)

0 commit comments

Comments
 (0)