fix: lock resousers
This commit is contained in:
@@ -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 "解锁";
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user