feat : vip 特權更改

This commit is contained in:
eggmanQQQ
2024-11-06 18:00:57 +08:00
parent 07dcede0ad
commit 47f3a05fd2

View File

@@ -58,10 +58,10 @@ class VipCenterIdentificationsAdapter(
private fun getVipFilter(level: Int, authType: Int) : Boolean{
// 1.铭牌 2.头饰 5.用户卡片 8.麦位光圈 11.聊天气泡 12 进厂特效
return when (level) {
1 -> authType == 1 || authType == 2 || authType == 5
1 -> authType == 1 || authType == 2
2 -> authType == 1 || authType == 2 || authType == 5
3 -> authType == 1 || authType == 2 || authType == 5 || authType == 8
4 -> authType == 1 || authType == 2 || authType == 5 || authType == 8 || authType == 11 || authType == 12
4 -> authType == 1 || authType == 2 || authType == 5 || authType == 8 || authType == 11
5 -> authType == 1 || authType == 2 || authType == 5 || authType == 8 || authType == 11 || authType == 12
6 -> authType == 1 || authType == 2 || authType == 5 || authType == 8 || authType == 11 || authType == 12
7 -> authType == 1 || authType == 2 || authType == 5 || authType == 8 || authType == 11 || authType == 12
@@ -168,8 +168,10 @@ class VipCenterIdentificationsAdapter(
override fun getItemCount(): Int {
return vipInfo?.let {
when (it.vipLevel) {
1, 2 -> 3
1 -> 2
2 -> 3
3 -> 4
4 -> 5
else -> 6
}
} ?: 0 // items.size