签到脚本设置"Content-Type": "application/x-www-form-urlencoded",无法完成登录,始终返回Mail or password is incorrect
function login(url, email, password, title) {
let loginPath = url.indexOf("auth/login") != -1 ? "auth/login" : "user/_login.php"
let table = {
url: url.replace(/(auth|user)\/login(.php)*/g, "") + loginPath,
header: {
"Content-Type": "application/x-www-form-urlencoded"
},
body: {
"email": email,
"passwd": password,
"rumber-me": "week"
}
}