opti: delete debug info

This commit is contained in:
suxiaoxin 2017-12-18 19:38:02 +08:00
parent b83533ee82
commit 7ceb392910
2 changed files with 0 additions and 8 deletions

View File

@ -74,14 +74,7 @@ function sandbox(context = {}, script) {
return context;
}
// function HandleAfterScript(body, script){
// return body;
// }
function crossRequest(defaultOptions, preScript, afterScript) {
// preScript = `query.ttt="hello"; requestBody.aaaa= filter("3333 | md5 | substr:1, 5")`
// afterScript = `console.log(responseData); context.responseData='hello'`
let options = Object.assign({}, defaultOptions);
let urlObj = URL.parse(options.url, true), query = {};
query = Object.assign(query, urlObj.query);

View File

@ -190,7 +190,6 @@ class InterfaceColContent extends Component {
try {
let data = await crossRequest(options, interfaceData.pre_script, interfaceData.after_script)
let res = data.res.body = json_parse(data.res.body);
console.log(options)
result = {
...options,
...result,