mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 13:17:46 +00:00
* issues #1019 的迫真修复 * 修复 issues #1019 * 修复 issues #1019 * 改回 pickedLyric() 逻辑 * 更进一步的避免取词卡死问题 * 更新网易云 api 到 4.2.0 * Update README.md * Revert "Update README.md" This reverts commit b862ef7d4dabd40c8fe57e4837fc6220806a1456.
47 lines
1 KiB
HTML
47 lines
1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh">
|
|
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>登录</title>
|
|
</head>
|
|
|
|
<body>
|
|
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.20.0-0/axios.min.js"></script>
|
|
<script>
|
|
const phone = '' // 这里填手机号
|
|
const password = '' // 这里填密码
|
|
const fileUpdateTime = {}
|
|
if (!phone || !password) {
|
|
const msg = '请设置你的手机号码和密码'
|
|
alert(msg)
|
|
throw new Error(msg)
|
|
}
|
|
|
|
async function login() {
|
|
const res = await axios({
|
|
url: `/login/cellphone`,
|
|
method: 'post',
|
|
data: {
|
|
phone: phone,
|
|
password: password,
|
|
},
|
|
})
|
|
return res.data.cookie
|
|
}
|
|
async function main() {
|
|
const cookieToken = await login()
|
|
const res = await axios({
|
|
url: `/login/status`,
|
|
method: 'post',
|
|
data: {
|
|
cookie: cookieToken,
|
|
},
|
|
})
|
|
}
|
|
main()
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|