fix: align manager center VIP fallback days
This commit is contained in:
parent
3f7d14e528
commit
09df809a5d
@ -10,6 +10,8 @@
|
|||||||
const GO_API_PATH_PREFIX = "/go";
|
const GO_API_PATH_PREFIX = "/go";
|
||||||
const LOCAL_GO_API_BASE_URL = "http://127.0.0.1:1100";
|
const LOCAL_GO_API_BASE_URL = "http://127.0.0.1:1100";
|
||||||
const defaultPropsType = "RIDE";
|
const defaultPropsType = "RIDE";
|
||||||
|
// 后端经理中心 VIP 赠送默认 30 天;接口缺 days 时前端兜底展示同一口径。
|
||||||
|
const defaultNobleVIPGiftDays = 30;
|
||||||
|
|
||||||
const fallbackMessages = {
|
const fallbackMessages = {
|
||||||
en: {
|
en: {
|
||||||
@ -1039,7 +1041,7 @@
|
|||||||
function giftDays(item) {
|
function giftDays(item) {
|
||||||
const days = Number(item?.days);
|
const days = Number(item?.days);
|
||||||
if (Number.isFinite(days) && days > 0) return days;
|
if (Number.isFinite(days) && days > 0) return days;
|
||||||
return String(item?.type || state.propsType).toUpperCase() === "NOBLE_VIP" ? 3 : 7;
|
return String(item?.type || state.propsType).toUpperCase() === "NOBLE_VIP" ? defaultNobleVIPGiftDays : 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderManager(manager) {
|
function renderManager(manager) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user