diff --git a/gonghui/manager-center/index.html b/gonghui/manager-center/index.html index 8a8a7b6..b2106b5 100644 --- a/gonghui/manager-center/index.html +++ b/gonghui/manager-center/index.html @@ -523,6 +523,6 @@ - + diff --git a/gonghui/manager-center/script.js b/gonghui/manager-center/script.js index 679d97d..6f05479 100644 --- a/gonghui/manager-center/script.js +++ b/gonghui/manager-center/script.js @@ -35,6 +35,7 @@ { label: '90 days', ms: 90 * DAY_MS }, ]; var DEFAULT_RESOURCE_GRANT_DURATION_MS = RESOURCE_GRANT_DURATIONS[0].ms; + var VIP_GRANT_LEVELS = [1, 2, 3, 4, 5]; var TRACK_LABELS = { wealth: 'Wealth', charm: 'Charm', @@ -897,7 +898,8 @@ } if (grantState.action === 'send-vip') { $('grantOptionTitle').textContent = 'Select VIP level'; - [1, 2, 3].forEach(function (level) { + // VIP grants must stay on the explicit product allow-list so the UI never sends a level the backend has not opened. + VIP_GRANT_LEVELS.forEach(function (level) { var button = createNode('button', '', 'VIP ' + level); button.type = 'button'; button.classList.toggle(