This commit is contained in:
2025-02-24 09:06:57 +08:00
parent a7197be8cf
commit c3ead2e57d
3 changed files with 96 additions and 24 deletions

View File

@@ -762,16 +762,16 @@
if (!userVips || userVips.length === 0) return '';
const vipMap = {
4: '中医',
5: '针灸',
6: '肿瘤',
7: '国学',
8: '心理学'
4: '中医VIP',
5: '针灸VIP',
6: '肿瘤VIP',
7: '国学VIP',
8: '心理学VIP'
};
const vipTypes = userVips.map(vip => vip.type);
const isMedicalVip = vipTypes.some(type => [4, 5, 6].includes(type));
const isPsychologyVip = vipTypes.some(type => [7, 8].includes(type));
const isMedicalVip = [4, 5, 6].every(type => vipTypes.includes(type));
const isPsychologyVip = [7,8].every(type => vipTypes.includes(type));
// 特殊情况:医学 + 心理学
if (isMedicalVip && isPsychologyVip) {