warlee 我用的是nodejs的request方法 你说的这种我也试过,各种形式的json我都用过了,都是显示操作失败
request("https://xxx.xxx.xyz/" + '?user/index/loginSubmit&name=' + "abc" + '&password=' + "abc", { json: true }, (err, res, body) => {
var post_data = { "dataArr": [{ "path": "{source:670}/", "name": "123.docx", "type": "file" }] }
var content = JSON.stringify(post_data);
request({
url: "https://xx.xxx.xyz/index.php?explorer/index/pathInfo&accessToken=" + body.info,
method: "POST",
json: true,
headers: {
'Content-Type': 'application/json',
'Content-Length': content.length
},
data: content
}, function(error, response, body) {
console.log(response)
console.log(content)
});