说明:此配置仅适用于7版本及以上,低版本可能有问题
JavaScript 内容如下:
try {
var sourceData = JSON.parse(value),
req = new HttpRequest(),
response;
if (sourceData.HTTPProxy) {
req.setProxy(sourceData.HTTPProxy);
}
req.addHeader('Content-Type: application/json');
var targetData = {
"msg_type": "text",
"content": {
"text": sourceData.message
}