Update test.js

This commit is contained in:
Shawn
2019-06-25 17:20:17 +08:00
committed by GitHub
parent 797314c6a9
commit b882548b00

10
test.js
View File

@@ -2,12 +2,12 @@
// $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);
//var body = $response.body;
//var obj = JSON.parse(body);
//$notify("HAHA", "Sucess");
$notification.post("HAHA", "Sucess");
obj['result'] = 0;
body = JSON.stringify(obj);
//obj['result'] = 0;
//body = JSON.stringify(obj);
$done(body);
//$done(body);