mirror of
https://github.com/KOP-XIAO/QuantumultX.git
synced 2026-01-25 17:15:09 +00:00
Create test.js
This commit is contained in:
12
test.js
Normal file
12
test.js
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
// $request, $response, $notify(title, message), console.log(message)
|
||||||
|
// $request.scheme, $request.method, $request.url, $request.path, $request.body, $request.headers
|
||||||
|
// $response.statusCode, $response.headers, $response.body
|
||||||
|
|
||||||
|
var body = $response.body;
|
||||||
|
var obj = JSON.parse(body);
|
||||||
|
|
||||||
|
$notify("HAHA", "Sucess")
|
||||||
|
obj['result'] = 0;
|
||||||
|
body = JSON.stringify(obj);
|
||||||
|
|
||||||
|
$done(body);
|
||||||
Reference in New Issue
Block a user