Files
2025-02-04 12:23:30 +08:00

20 lines
1.2 KiB
JavaScript

fetch("http://localhost:4874/api/test/add", {
"headers": {
"accept": "application/json, text/plain, */*",
"accept-language": "en,zh-CN;q=0.9,zh;q=0.8",
"authorization": "",
"cache-control": "no-cache",
"content-type": "application/json",
"sec-ch-ua": "\"Not/A)Brand\";v=\"8\", \"Chromium\";v=\"126\", \"Google Chrome\";v=\"126\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Windows\"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin",
"cookie": "UserInfo={%22id%22:%22cl3fqx6zb000034ny90rd333s%22%2C%22useName%22:%22xxk%22%2C%22pwd%22:%22123456%22%2C%22phone%22:%221342919898%22%2C%22vehiclePlateNumber%22:%22sfsfsdf%22%2C%22userInfoPic%22:%22/%E5%BE%90_1.png%22%2C%22createTime%22:%222022-05-21T10:46:44.377Z%22%2C%22name%22:%22%E5%BE%90%E5%90%91%E5%A5%8E%22%2C%22userName%22:%22xxk%22%2C%22source_type%22:%22IPC%22%2C%22forever%22:true%2C%22noticeTotal%22:%2235%22}",
"Referer": "http://localhost:4874/",
"Referrer-Policy": "strict-origin-when-cross-origin"
},
"body": "{\"id\":0,\"message\":\"xxx\",\"sort\":1,\"userId\":\"cl3fqx6zb000034ny90rd333s\"}",
"method": "POST"
});