Skip to content

Commit c720419

Browse files
author
chouchoui
authored
Merge pull request chavyleung#2 from chavyleung/master
sync
2 parents 89c9119 + 778cfe8 commit c720419

13 files changed

Lines changed: 1024 additions & 394 deletions

β€ŽEnv.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ function Env(name, opts) {
220220
if (!err && resp) {
221221
resp.body = body
222222
resp.statusCode = resp.status
223-
callback(err, resp, body)
224223
}
224+
callback(err, resp, body)
225225
})
226226
} else if (this.isQuanX()) {
227227
opts.method = 'POST'
@@ -308,7 +308,7 @@ function Env(name, opts) {
308308
return new Promise((resolve) => setTimeout(resolve, time))
309309
}
310310

311-
done(val = null) {
311+
done(val = {}) {
312312
const endTime = new Date().getTime()
313313
const costTime = (endTime - this.startTime) / 1000
314314
this.log('', `πŸ””${this.name}, η»“ζŸ! πŸ•› ${costTime} η§’`)

β€ŽEnv.min.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€ŽQuantumultX.box.local.confβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
hostname = 8.8.8.8
22

33
^https://8.8.8.8/api url script-request-body chavyleung/chavy.box.js
4-
^https://8.8.8.8/(home|sub|my|app|log)($|\/) url script-response-body chavyleung/chavy.box.js
4+
^https://8.8.8.8/(home|sub|my|app|log|revert)($|\/) url script-response-body chavyleung/chavy.box.js

β€ŽQuantumultX.box.remote.confβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
hostname = 8.8.8.8
22

3-
^https://8.8.8.8/api url script-request-body https://raw.githubusercontent.com/chavyleung/scripts/master/chavy.box.js
4-
^https://8.8.8.8/(home|sub|my|app|log)($|\/) url script-response-body https://raw.githubusercontent.com/chavyleung/scripts/master/chavy.box.js
3+
^https://8.8.8.8/api url script-request-body https://gitee.com/chavyleung/scripts/raw/master/chavy.box.js
4+
^https://8.8.8.8/(home|sub|my|app|log|revert)($|\/) url script-response-body https://gitee.com/chavyleung/scripts/raw/master/chavy.box.js

0 commit comments

Comments
Β (0)