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

@@ -112,7 +112,7 @@ function NTRPTestEntryCard(props: {
}`, }`,
}); });
}, },
[setCallback] [setCallback, testFlag, type, evaluateCallback]
); );
return type === EvaluateScene.list ? ( return type === EvaluateScene.list ? (

View File

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