Open xream opened 2 days ago
Surge 的 HTTP-API 运行脚本支持传入 argument 字段了
argument
curl 'http://127.0.0.1:6171/v1/scripting/evaluate' \ --data '{ "script_text": "console.log($argument)\n$done();", "mock_type": "cron", "argument": "this is it", "timeout": 5 }' {"result":null,"output":"22:16:33.482967 this is it\n22:16:33.483433 [Script Completed]\n----------------------------\n"}
我会在近期增加支持
Surge 的 HTTP-API 运行脚本支持传入
argument
字段了