️ 对深渊数据进行检测

This commit is contained in:
目棃
2024-03-01 13:54:10 +08:00
parent ac44f19d35
commit 5bcd2202b6

View File

@@ -220,6 +220,15 @@ async function uploadAbyss(): Promise<void> {
await TGLogger.Warn("[UserAbyss][uploadAbyss] 未找到深渊数据");
return;
}
const maxFloor = abyssData.maxFloor.split("-")[0];
if (maxFloor <= "8") {
showSnackbar({
text: "尚未完成深渊,请完成深渊后重试!",
color: "error",
});
await TGLogger.Warn(`[UserAbyss][uploadAbyss] 尚未完成深渊 ${abyssData.maxFloor}`);
return;
}
const startTime = new Date(abyssData.startTime).getTime();
const endTime = new Date(abyssData.endTime).getTime();
const nowTime = new Date().getTime();