{
"id": 2,
"jsFun": "test",
"jsContent": "function ipToHex(c1){\r\n\tvar ip = c1;\r\n\tvar arr = ip.split(\".\");\r\n\tvar ret = \"\";\r\n\tfor(var i = 0;i < arr.length;i++){\r\n\t\tvar tmp = parseInt(arr[i]).toString(16).toUpperCase();\r\n\t\tif(tmp.length==1){\r\n\t\t\ttmp = \"0\" + tmp;\r\n\t\t}\r\n\t\tif(i==0){\r\n\t\t\tret = tmp;\r\n\t\t}else{\r\n\t\t\tret = ret + \" \" + tmp;\r\n\t\t}\r\n\t}\r\n\treturn ret;\r\n}",
"remark": "labore Ut consectetur nulla",
"status": 1
}
curl --location --request POST '/myauth/web/updJs' \
--header 'token: 2b036bd8139e44e1a8034e371d9584a7' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 2,
"jsFun": "test",
"jsContent": "function ipToHex(c1){\r\n\tvar ip = c1;\r\n\tvar arr = ip.split(\".\");\r\n\tvar ret = \"\";\r\n\tfor(var i = 0;i < arr.length;i++){\r\n\t\tvar tmp = parseInt(arr[i]).toString(16).toUpperCase();\r\n\t\tif(tmp.length==1){\r\n\t\t\ttmp = \"0\" + tmp;\r\n\t\t}\r\n\t\tif(i==0){\r\n\t\t\tret = tmp;\r\n\t\t}else{\r\n\t\t\tret = ret + \" \" + tmp;\r\n\t\t}\r\n\t}\r\n\treturn ret;\r\n}",
"remark": "labore Ut consectetur nulla",
"status": 1
}'
{
"code": 200,
"success": true,
"msg": "修改成功",
"sign": "",
"result": null,
"timestamp": 1645520525552
}