______ __ __ ______ _____ ______
/\ __ \/\ \/\ \ /\__ _\ /\ __`\/\__ _\
\ \ \_\ \ \ \/ / \/_/\ \/ \ \ \/\ \/_/\ \/
\ \ __ \ \ < \ \ \ \ \ \ \ \ \ \ \
\ \ \/\ \ \ \ \`\ \_\ \__\ \ \_\ \ \_\ \__
\ \_\ \_\ \_\ \_\ /\_____\\ \_____\/\_____\
\/_/\/_/\/_/\/_/ \/_____/ \/_____/\/_____/我们班级团队:https://www.luogu.com.cn/team/57785
神贴集合:https://www.luogu.com/article/3f48l8ux
孟子三章: https://www.luogu.com/paste/ppc8xyor
这是 zhangshirui 唯一官方小号,只用来发帖,平时不怎么用
改备注:
fetch("https://www.luogu.com.cn/api/team/editMember/团号", {
"headers": {
"accept": "application/json, text/plain, */*",
"accept-language": "zh-CN,zh;q=0.9",
"content-type": "application/json",
"sec-ch-ua": "\"Google Chrome\";v=\"123\", \"Not:A-Brand\";v=\"8\", \"Chromium\";v=\"123\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Windows\"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin",
"x-csrf-token":document.querySelector("meta[name=csrf-token]").content,
"x-requested-with": "XMLHttpRequest"
},
"referrer": "https://www.luogu.com.cn/team/团号",
"referrerPolicy": "strict-origin-when-cross-origin",
"body": "{\"你的UID\":{\"realName\":\"你要改的备注\",\"group\":分组号(自己在控制台网络里看)}}",
"method": "POST",
"mode": "cors",
"credentials": "include"
});获得x-csrf-token:
document.querySelector("meta[name=csrf-token]").content
link:
