fix: lock resousers

This commit is contained in:
zzc
2026-03-11 16:36:54 +08:00
parent c2b889ac8f
commit 9c4f0c5650
3 changed files with 37 additions and 18 deletions

View File

@@ -68,3 +68,24 @@ export const checkAbilityAndHandle = async (scene) => {
return false;
}
};
/**
* Gets the display label for an unlock type.
* @param {string} unlockType - The unlock type identifier.
* @returns {string} - The display label.
*/
export const getUnlockLabel = (unlockType) => {
if (!unlockType) return "解锁";
switch (unlockType) {
case "sing3":
return "登录3天";
case "sing1":
return "登录1天";
case "ad":
return "广告";
case "vip":
return "VIP";
default:
return "解锁";
}
};