🐞 fix: 修复签到出错

This commit is contained in:
imsyy
2023-12-20 15:35:09 +08:00
parent 4cb8eb0213
commit a8e867bbf9
3 changed files with 6 additions and 2 deletions

View File

@@ -126,6 +126,8 @@
### 本地构建
> 请尽量使用本地构建方式,在线仓库可能更新不及时
```bash
# 构建
docker build -t splayer .

View File

@@ -191,7 +191,7 @@ onMounted(async () => {
window.addEventListener("keyup", handleKeyUp);
}
// 自动签到
if (autoSignIn.value) await userSignIn(settings);
if (autoSignIn.value) await userSignIn();
// 显示公告
showAnnouncements();
});

View File

@@ -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();