mirror of
https://github.com/imsyy/SPlayer.git
synced 2025-11-25 03:14:57 +08:00
🐞 fix: 修复签到出错
This commit is contained in:
@@ -126,6 +126,8 @@
|
||||
|
||||
### 本地构建
|
||||
|
||||
> 请尽量使用本地构建方式,在线仓库可能更新不及时
|
||||
|
||||
```bash
|
||||
# 构建
|
||||
docker build -t splayer .
|
||||
|
||||
@@ -191,7 +191,7 @@ onMounted(async () => {
|
||||
window.addEventListener("keyup", handleKeyUp);
|
||||
}
|
||||
// 自动签到
|
||||
if (autoSignIn.value) await userSignIn(settings);
|
||||
if (autoSignIn.value) await userSignIn();
|
||||
// 显示公告
|
||||
showAnnouncements();
|
||||
});
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { userDailySignin } from "@/api/user";
|
||||
import { siteSettings } from "@/stores";
|
||||
import { isLogin } from "@/utils/auth";
|
||||
|
||||
/**
|
||||
@@ -6,7 +7,8 @@ import { isLogin } from "@/utils/auth";
|
||||
* https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1387
|
||||
* 云贝签到本质上就是 Android 客户端每日签到
|
||||
*/
|
||||
const userSignIn = async (settings) => {
|
||||
const userSignIn = async () => {
|
||||
const settings = siteSettings();
|
||||
try {
|
||||
if (!isLogin()) return false;
|
||||
const today = new Date().toLocaleDateString();
|
||||
|
||||
Reference in New Issue
Block a user