修复登录链接中的参数名错误

This commit is contained in:
2024-12-22 18:24:20 +08:00
parent 8f7b2de888
commit 1f6eda33d2

View File

@@ -156,7 +156,7 @@ if (isset($getTokenArr['access_token'])) {
const connectId = document.getElementById('linuxdo').value
request("/api?act=link&connect_id=" + connectId,{method:"POST"}).then(res => {
if (res.code == '0') {
location.href = "/play?account=" + res.data.account + "&token=" + res.data.password;
location.href = "/play?account=" + res.data.username + "&token=" + res.data.password;
} else {
document.body.innerHTML = "授权失败"
}