feat: fix an debug

This commit is contained in:
2025-11-18 07:59:58 +08:00
parent fb0060ff87
commit c8cf22507c
2 changed files with 11 additions and 11 deletions

View File

@@ -105,16 +105,16 @@ const ListContainer = (props) => {
if (!list || list.length === 0) {
return list;
}
if (userInfo.ntrp_level) {
return list;
}
const lastShowTime = getStorage("list_evaluate_card");
if (!lastShowTime) {
setStorage("list_evaluate_card", Date.now());
}
if (Date.now() - Number(lastShowTime) < 30 * 24 * 60 * 60 * 1000) {
return list;
}
// if (userInfo.ntrp_level) {
// return list;
// }
// const lastShowTime = getStorage("list_evaluate_card");
// if (!lastShowTime) {
// setStorage("list_evaluate_card", Date.now());
// }
// if (Date.now() - Number(lastShowTime) < 30 * 24 * 60 * 60 * 1000) {
// return list;
// }
if (list.length <= 3) {
return [...list, { type: "evaluateCard" }];
}