-- vip特权信息
local VipPrivilegeInfo = {
	-- 特权描述对应Cn_Res，最终拼成STR_VIP_PRIVILEGE_1_0之类
	-- 第一个1表示vip等级，第二个0表示索引
    -- VIP等级
    [0] = {
		-- 总数
        ["Count"] = 1,
		-- 生日特权索引
        ["BirthDay"] = -1,
		-- 升级所需积分
		["NextExp"] = 2700,
		-- 奖励图标
        ["AwardImg"] = "VIP_JL1",
		-- 奖励ID（任务部与服务端定义，对应VipAwardInfo）
		["AwardID"] = 0,
		-- 特权图标
		["Icon"] = {
			[0] = "VIP_tqtb1",
		},
		-- 特权是否开启tip
		-- 需要分别配置标题和内容，对应Cn_Res
		-- 标题如：STR_VIP_PRIVILEGE_AWRAD_TITLE_0_0
		-- 内容如：STR_VIP_PRIVILEGE_AWRAD_INFO_0_0
		-- 特权对应Tip是否开启
		["IndexTip"] = {
			[0] = false,
		},
		-- 特权对应礼物ID
		["IndexAward"] = {
			[0] = -1,
		}
    },
    [1] = {
		-- 总数
        ["Count"] = 4,
		-- 生日特权索引
        ["BirthDay"] = -1,
		-- 升级所需积分
		["NextExp"] = 5400,
		-- 奖励图标
        ["AwardImg"] = "VIP_JL1",
		-- 奖励ID（任务部与服务端定义，对应VipAwardInfo）
		["AwardID"] = 1,
		-- 特权图标
		["Icon"] = {
			[0] = "VIP_tqtb1",
			[1] = "VIP_tqtb19",
			[2] = "VIP_tqtb9",
			[3] = "VIP_tqtb18",
		},
		-- 特权是否开启tip
		-- 需要分别配置标题和内容，对应Cn_Res
		-- 标题如：STR_VIP_PRIVILEGE_AWRAD_TITLE_0_0
		-- 内容如：STR_VIP_PRIVILEGE_AWRAD_INFO_0_0
		-- 特权对应Tip是否开启
		["IndexTip"] = {
			[0] = false,
			[1] = true,
			[2] = true,
			[3] = true,
		},
		-- 特权对应礼物ID
		["IndexAward"] = {
			[0] = -1,
			[1] = -1,
			[2] = -1,
			[3] = -1,
		}
    },
    [2] = {
		-- 总数
        ["Count"] = 4,
		-- 生日特权索引
        ["BirthDay"] = -1,
		-- 升级所需积分
		["NextExp"] = 13500,
		-- 奖励图标
        ["AwardImg"] = "VIP_JL1",
		-- 奖励ID（任务部与服务端定义，对应VipAwardInfo）
		["AwardID"] = 2,
		["Icon"] = {
			[0] = "VIP_tqtb1",
			[1] = "VIP_tqtb19",
			[2] = "VIP_tqtb9",
			[3] = "VIP_tqtb18",
		},
		-- 特权是否开启tip
		-- 需要分别配置标题和内容，对应Cn_Res
		-- 标题如：STR_VIP_PRIVILEGE_AWRAD_TITLE_0_0
		-- 内容如：STR_VIP_PRIVILEGE_AWRAD_INFO_0_0
		-- 特权对应Tip是否开启
		["IndexTip"] = {
			[0] = false,
			[1] = true,
			[2] = true,
			[3] = true,
		},
		-- 特权对应礼物ID
		["IndexAward"] = {
			[0] = -1,
			[1] = -1,
			[2] = -1,
			[3] = -1,
		}
    },
    [3] = {
		-- 总数
        ["Count"] = 4,
		-- 生日特权索引
        ["BirthDay"] = -1,
		-- 升级所需积分
		["NextExp"] = 27000,
		-- 奖励图标
        ["AwardImg"] = "VIP_JL1",
		-- 奖励ID（任务部与服务端定义，对应VipAwardInfo）
		["AwardID"] = 3,
		["Icon"] = {
			[0] = "VIP_tqtb1",
			[1] = "VIP_tqtb19",
			[2] = "VIP_tqtb9",
			[3] = "VIP_tqtb18",
		},
		-- 特权是否开启tip
		-- 需要分别配置标题和内容，对应Cn_Res
		-- 标题如：STR_VIP_PRIVILEGE_AWRAD_TITLE_0_0
		-- 内容如：STR_VIP_PRIVILEGE_AWRAD_INFO_0_0
		-- 特权对应Tip是否开启
		["IndexTip"] = {
			[0] = false,
			[1] = true,
			[2] = true,
			[3] = true,
		},
		-- 特权对应礼物ID
		["IndexAward"] = {
			[0] = -1,
			[1] = -1,
			[2] = -1,
			[3] = -1,
		}
    },
    [4] = {
		-- 总数
        ["Count"] = 4,
		-- 生日特权索引
        ["BirthDay"] = -1,
		-- 升级所需积分
		["NextExp"] = 67500,
		-- 奖励图标
        ["AwardImg"] = "VIP_JL1",
		-- 奖励ID（任务部与服务端定义，对应VipAwardInfo）
		["AwardID"] = 4,
		["Icon"] = {
			[0] = "VIP_tqtb1",
			[1] = "VIP_tqtb19",
			[2] = "VIP_tqtb9",
			[3] = "VIP_tqtb18",
		},
		-- 特权是否开启tip
		-- 需要分别配置标题和内容，对应Cn_Res
		-- 标题如：STR_VIP_PRIVILEGE_AWRAD_TITLE_0_0
		-- 内容如：STR_VIP_PRIVILEGE_AWRAD_INFO_0_0
		-- 特权对应Tip是否开启
		["IndexTip"] = {
			[0] = false,
			[1] = true,
			[2] = true,
			[3] = true,
		},
		-- 特权对应礼物ID
		["IndexAward"] = {
			[0] = -1,
			[1] = -1,
			[2] = -1,
			[3] = -1,
		}
    },
    [5] = {
		-- 总数
        ["Count"] = 4,
		-- 生日特权索引
        ["BirthDay"] = -1,
		-- 升级所需积分
		["NextExp"] = 135000,
		-- 奖励图标
        ["AwardImg"] = "VIP_JL1",
		-- 奖励ID（任务部与服务端定义，对应VipAwardInfo）
		["AwardID"] = 5,
		["Icon"] = {
			[0] = "VIP_tqtb1",
			[1] = "VIP_tqtb19",
			[2] = "VIP_tqtb9",
			[3] = "VIP_tqtb18",
		},
		-- 特权是否开启tip
		-- 需要分别配置标题和内容，对应Cn_Res
		-- 标题如：STR_VIP_PRIVILEGE_AWRAD_TITLE_0_0
		-- 内容如：STR_VIP_PRIVILEGE_AWRAD_INFO_0_0
		-- 特权对应Tip是否开启
		["IndexTip"] = {
			[0] = false,
			[1] = true,
			[2] = true,
			[3] = true,
			[4] = true,
		},
		-- 特权对应礼物ID
		["IndexAward"] = {
			[0] = -1,
			[1] = -1,
			[2] = -1,
			[3] = -1,
			[4] = -1,
		}
    },
    [6] = {
		-- 总数
        ["Count"] = 5,
		-- 生日特权索引
        ["BirthDay"] = -1,
		-- 升级所需积分
		["NextExp"] = 270000,
		-- 奖励图标
        ["AwardImg"] = "VIP_JL1",
		-- 奖励ID（任务部与服务端定义，对应VipAwardInfo）
		["AwardID"] = 6,
		["Icon"] = {
			[0] = "VIP_tqtb1",
			[1] = "VIP_tqtb19",
			[2] = "VIP_tqtb9",
			[3] = "VIP_tqtb18",
			[4] = "VIP_tqtb3",
		},
		-- 特权是否开启tip
		-- 需要分别配置标题和内容，对应Cn_Res
		-- 标题如：STR_VIP_PRIVILEGE_AWRAD_TITLE_0_0
		-- 内容如：STR_VIP_PRIVILEGE_AWRAD_INFO_0_0
		-- 特权对应Tip是否开启
		["IndexTip"] = {
			[0] = false,
			[1] = true,
			[2] = true,
			[3] = true,
			[4] = true,
			[5] = true,
		},
		-- 特权对应礼物ID
		["IndexAward"] = {
			[0] = -1,
			[1] = -1,
			[2] = -1,
			[3] = -1,
			[4] = -1,
			[5] = -1,
		}
    },
    [7] = {
		-- 总数
        ["Count"] = 12,
		-- 生日特权索引
        ["BirthDay"] = -1,
		-- 升级所需积分
		["NextExp"] = 810000,
		-- 奖励图标
        ["AwardImg"] = "VIP_JL2",
		-- 奖励ID（任务部与服务端定义，对应VipAwardInfo）
		["AwardID"] = 7,
		["Icon"] = {
			[0] = "VIP_tqtb1",
			[1] = "VIP_tqtb17",
			[2] = "VIP_tqtb7",
			[3] = "VIP_tqtb4",
			[4] = "VIP_tqtb11",
			[5] = "VIP_tqtb15",
			[6] = "VIP_tqtb14",
			[7] = "VIP_tqtb18",
			[8] = "VIP_tqtb12",
			[9] = "VIP_tqtb3",
			[10] = "VIP_tqtb16",
			[11] = "VIP_tqtb10",
			[12] = "VIP_tqtb10",
		},
		-- 特权是否开启tip
		-- 需要分别配置标题和内容，对应Cn_Res
		-- 标题如：STR_VIP_PRIVILEGE_AWRAD_TITLE_0_0
		-- 内容如：STR_VIP_PRIVILEGE_AWRAD_INFO_0_0
		-- 特权对应Tip是否开启
		["IndexTip"] = {
			[0] = false,
			[1] = true,
			[2] = true,
			[3] = true,
			[4] = true,
			[5] = true,
			[6] = true,
			[7] = true,
			[8] = true,
			[9] = true,
			[10] = true,
			[11] = true,
		},
		-- 特权对应礼物ID
		["IndexAward"] = {
			[0] = -1,
			[1] = -1,
			[2] = -1,
			[3] = -1,
			[4] = -1,
			[5] = -1,
			[6] = -1,
			[7] = -1,
			[8] = -1,
			[9] = -1,
			[10] = -1,
			[11] = -1,
		}
    },
    [8] = {
		-- 总数
        ["Count"] = 14,
		-- 生日特权索引
        ["BirthDay"] = 2,
		-- 升级所需积分
		["NextExp"] = 1350000,
		-- 奖励图标
        ["AwardImg"] = "VIP_JL2",
		-- 奖励ID（任务部与服务端定义，对应VipAwardInfo）
		["AwardID"] = 8,
		["Icon"] = {
			[0] = "VIP_tqtb1",
			[1] = "VIP_tqtb5",
			[2] = "VIP_tqtb8",
			[3] = "VIP_tqtb17",
			[4] = "VIP_tqtb7",
			[5] = "VIP_tqtb4",
			[6] = "VIP_tqtb11",
			[7] = "VIP_tqtb15",
			[8] = "VIP_tqtb14",
			[9] = "VIP_tqtb18",
			[10] = "VIP_tqtb12",
			[11] = "VIP_tqtb3",
			[12] = "VIP_tqtb16",
			[13] = "VIP_tqtb10",
			[14] = "VIP_tqtb10",
		},
		-- 特权是否开启tip
		-- 需要分别配置标题和内容，对应Cn_Res
		-- 标题如：STR_VIP_PRIVILEGE_AWRAD_TITLE_0_0
		-- 内容如：STR_VIP_PRIVILEGE_AWRAD_INFO_0_0
		-- 特权对应Tip是否开启
		["IndexTip"] = {
			[0] = false,
			[1] = true,
			[2] = true,
			[3] = true,
			[4] = true,
			[5] = true,
			[6] = true,
			[7] = true,
			[8] = true,
			[9] = true,
			[10] = true,
			[11] = true,
			[12] = true,
			[13] = true,
		},
		-- 特权对应礼物ID
		["IndexAward"] = {
			[0] = -1,
			[1] = -1,
			[2] = 11,
			[3] = -1,
			[4] = -1,
			[5] = -1,
			[6] = -1,
			[7] = -1,
			[8] = -1,
			[9] = -1,
			[10] = -1,
			[11] = -1,
			[12] = -1,
			[13] = -1,
		}
    },
    [9] = {
		-- 总数
        ["Count"] = 17,
		-- 生日特权索引
        ["BirthDay"] = 2,
		-- 升级所需积分(0表示满级)
		["NextExp"] = 0,
		-- 奖励图标
        ["AwardImg"] = "VIP_JL2",
		-- 奖励ID（任务部与服务端定义，对应VipAwardInfo）
		["AwardID"] = 9,
		["Icon"] = {
			[0] = "VIP_tqtb1",
			[1] = "VIP_tqtb5",
			[2] = "VIP_tqtb8",
			[3] = "VIP_tqtb6",
			[4] = "VIP_tqtb2",
			[5] = "VIP_tqtb17",
			[6] = "VIP_tqtb7",
			[7] = "VIP_tqtb4",
			[8] = "VIP_tqtb11",
			[9] = "VIP_tqtb15",
			[10] = "VIP_tqtb14",
			[11] = "VIP_tqtb18",
			[12] = "VIP_tqtb12",
			[13] = "VIP_tqtb3",
			[14] = "VIP_tqtb16",
			[15] = "VIP_tqtb10",
			[16] = "VIP_tqtb20", 
		},
		-- 特权是否开启tip
		-- 需要分别配置标题和内容，对应Cn_Res
		-- 标题如：STR_VIP_PRIVILEGE_AWRAD_TITLE_0_0
		-- 内容如：STR_VIP_PRIVILEGE_AWRAD_INFO_0_0
		-- 特权对应Tip是否开启
		["IndexTip"] = {
			[0] = false,
			[1] = true,
			[2] = true,
			[3] = true,
			[4] = true,
			[5] = true,
			[6] = true,
			[7] = true,
			[8] = true,
			[9] = true,
			[10] = true,
			[11] = true,
			[12] = true,
			[13] = true,
			[14] = true,
			[15] = true,
			[16] = true,
		},
		-- 特权对应礼物ID
		["IndexAward"] = {
			[0] = -1,
			[1] = -1,
			[2] = 12,
			[3] = -1,
			[4] = -1,
			[5] = -1,
			[6] = -1,
			[7] = -1,
			[8] = -1,
			[9] = -1,
			[10] = -1,
			[11] = -1,
			[12] = -1,
			[13] = -1,
			[14] = -1,
			[15] = -1,
			[16] = -1,
		}
    },
}

-- vip奖励
local VipAwardInfo = {
    -- 奖励ID
    [0] = {
		-- 奖励个数
        ["Count"] = 1,
		["Award"] = {
			-- 物品type,是否赠品
			[0] = { ["Type"] = 3328247, ["Mono"] = 0, ["Num"] = 30},
		}
    },
    [1] = {
		-- 奖励个数
        ["Count"] = 4,
		["Award"] = {
			-- 物品type,是否赠品
			[0] = { ["Type"] = 3346079, ["Mono"] = 0, ["Num"] = 1},
			[1] = { ["Type"] = 730003 , ["Mono"] = 1, ["Num"] = 1},
			[2] = { ["Type"] = 3314207, ["Mono"] = 1, ["Num"] = 2},
			[3] = { ["Type"] = 3306919, ["Mono"] = 0, ["Num"] = 1},
		}
    },
    [2] = {
		-- 奖励个数
        ["Count"] = 4,
		["Award"] = {
			-- 物品type,是否赠品
			[0] = { ["Type"] = 3346080, ["Mono"] = 0, ["Num"] = 1},
			[1] = { ["Type"] = 3346086, ["Mono"] = 0, ["Num"] = 1},
			[2] = { ["Type"] = 3306919, ["Mono"] = 0, ["Num"] = 1},
			[3] = { ["Type"] = 3009102, ["Mono"] = 0, ["Num"] = 10},
		}
    },
    [3] = {
		-- 奖励个数
        ["Count"] = 5,
		["Award"] = {
			-- 物品type,是否赠品
			[0] = { ["Type"] = 3346081, ["Mono"] = 0, ["Num"] = 1},
			[1] = { ["Type"] = 3346087, ["Mono"] = 0, ["Num"] = 1},
			[2] = { ["Type"] = 3009104, ["Mono"] = 0, ["Num"] = 3},
			[3] = { ["Type"] = 3306919, ["Mono"] = 0, ["Num"] = 1},
			[4] = { ["Type"] = 3341917, ["Mono"] = 0, ["Num"] = 1},
		}
    },
	[4] = {
		-- 奖励个数
        ["Count"] = 5,
		["Award"] = {
			-- 物品type,是否赠品
			[0] = { ["Type"] = 3346082, ["Mono"] = 0, ["Num"] = 1},
			[1] = { ["Type"] = 3346088, ["Mono"] = 0, ["Num"] = 1},
			[2] = { ["Type"] = 3009104, ["Mono"] = 0, ["Num"] = 6},
			[3] = { ["Type"] = 3306919, ["Mono"] = 0, ["Num"] = 1},
			[4] = { ["Type"] = 3346090, ["Mono"] = 0, ["Num"] = 1},
		}
    },
	[5] = {
		-- 奖励个数
        ["Count"] = 5,
		["Award"] = {
			-- 物品type,是否赠品
			[0] = { ["Type"] = 3346083, ["Mono"] = 0, ["Num"] = 1},
			[1] = { ["Type"] = 3314250, ["Mono"] = 1, ["Num"] = 1},
			[2] = { ["Type"] = 3346089, ["Mono"] = 0, ["Num"] = 1},
			[3] = { ["Type"] = 730006,  ["Mono"] = 1, ["Num"] = 1},
			[4] = { ["Type"] = 3346179, ["Mono"] = 0, ["Num"] = 1},
		}
    },
	[6] = {
		-- 奖励个数
        ["Count"] = 5,
		["Award"] = {
			-- 物品type,是否赠品
			[0] = { ["Type"] = 3346083, ["Mono"] = 0, ["Num"] = 1},
			[1] = { ["Type"] = 3314250, ["Mono"] = 1, ["Num"] = 1},
			[2] = { ["Type"] = 730006,  ["Mono"] = 1, ["Num"] = 1},
			[3] = { ["Type"] = 3322813, ["Mono"] = 1, ["Num"] = 3},
			[4] = { ["Type"] = 3346180, ["Mono"] = 0, ["Num"] = 1},
		}
    },
	[7] = {
		-- 奖励个数
        ["Count"] = 5,
		["Award"] = {
			-- 物品type,是否赠品
			[0] = { ["Type"] = 3346084, ["Mono"] = 0, ["Num"] = 1},
			[1] = { ["Type"] = 3314250, ["Mono"] = 1, ["Num"] = 1},
			[2] = { ["Type"] = 3346569, ["Mono"] = 0, ["Num"] = 1},
			[3] = { ["Type"] = 3346184, ["Mono"] = 0, ["Num"] = 1},
			[4] = { ["Type"] = 3346181, ["Mono"] = 0, ["Num"] = 1},
		}
    },
	[8] = {
		-- 奖励个数
        ["Count"] = 5,
		["Award"] = {
			-- 物品type,是否赠品
			[0] = { ["Type"] = 3346084, ["Mono"] = 0, ["Num"] = 1},
			[1] = { ["Type"] = 3314250, ["Mono"] = 1, ["Num"] = 5},
			[2] = { ["Type"] = 3346569, ["Mono"] = 0, ["Num"] = 2},
			[3] = { ["Type"] = 3346185, ["Mono"] = 0, ["Num"] = 1},
			[4] = { ["Type"] = 3346182, ["Mono"] = 0, ["Num"] = 1},
		}
    },
	[9] = {
		-- 奖励个数
        ["Count"] = 5,
		["Award"] = {
			-- 物品type,是否赠品
			[0] = { ["Type"] = 3346085, ["Mono"] = 0, ["Num"] = 1},
			[1] = { ["Type"] = 3314245, ["Mono"] = 1, ["Num"] = 1},
			[2] = { ["Type"] = 3346569, ["Mono"] = 0, ["Num"] = 5},
			[3] = { ["Type"] = 3346186, ["Mono"] = 0, ["Num"] = 1},
			[4] = { ["Type"] = 3346183, ["Mono"] = 0, ["Num"] = 1},
		}
    },
	
	-- 生日礼物
	[11] = {
		-- 奖励个数
        ["Count"] = 4,
		["Award"] = {
			-- 物品type,是否赠品
			[0] = { ["Type"] = 3346116, ["Mono"] = 0, ["Num"] = 1},
			[1] = { ["Type"] = 3340494, ["Mono"] = 0, ["Num"] = 2},
			[2] = { ["Type"] = 3314250, ["Mono"] = 1, ["Num"] = 1},
			[3] = { ["Type"] = 3322813, ["Mono"] = 0, ["Num"] = 8},
		}
    },
	
	-- 生日礼物
	[12] = {
		-- 奖励个数
        ["Count"] = 4,
		["Award"] = {
			-- 物品type,是否赠品
			[0] = { ["Type"] = 3346117, ["Mono"] = 0, ["Num"] = 1},
			[1] = { ["Type"] = 3340494, ["Mono"] = 0, ["Num"] = 2},
			[2] = { ["Type"] = 3314245, ["Mono"] = 1, ["Num"] = 1},
			[3] = { ["Type"] = 3322813, ["Mono"] = 0, ["Num"] = 10},
		}
    },
	
    [101] = {
		-- 奖励个数
        ["Count"] = 1,
		["Award"] = {
			-- 物品type,是否赠品
			[0] = { ["Type"] = 3314245, ["Mono"] = 1, ["Num"] = 1},
		}
    },
    [102] = {
		-- 奖励个数
        ["Count"] = 1,
		["Award"] = {
			-- 物品type,是否赠品
			[0] = { ["Type"] = 3348244, ["Mono"] = 0,},
		}
    },
    [103] = {
		-- 奖励个数
        ["Count"] = 1,
		["Award"] = {
			-- 物品type,是否赠品
			[0] = { ["Type"] = 3348244, ["Mono"] = 0,},
		}
    },
}

--Vip特权商店新增
local SplendidRewardInfo = {
	[1]= {
		-- 奖励ID（任务部与服务端定义，对应VipAwardInfo）
		AwardID = 101,
		--是否可以重复领取
		getagain = true,
		--所需Vip等级
		viplev = 7,
		--奖励背景
		bg = "VIPjl_BG1",
		title = "VIPjl_WZ1",
		type = "STR_VIP_REWARD_TITLE_TIP1",--神纹豪礼
		tip="STR_VIP_REWARD_RULE_TIP1",--奖励描述与规则
		opentime = 20240128,--该奖励类型开放时间
		closetime=20750401,--该奖励类型关闭时间
		canPre=false,	--是否开启预览功能
		rewardPre = {},--这里是配置预览奖励的，我在下面处理了，你也可以添加到这里面来，加进来记得把后面的删除
		firstlev = 7,--预览奖励是从多少vip等级开始的，比如这个可能123456级都没有，从7级开始
	},
	[2]= {
		-- 奖励ID（任务部与服务端定义，对应VipAwardInfo）
		AwardID = 102,
		--是否可以重复领取
		getagain = false,
		--所需Vip等级
		viplev = 1,
		--奖励背景
		bg = "VIPjl_BG2",
		title = "VIPjl_WZ1",
		type = "STR_VIP_REWARD_TITLE_TIP2",--神纹豪礼
		tip="STR_VIP_REWARD_RULE_TIP2",--奖励描述与规则
		opentime = 20240402,--该奖励类型开放时间
		closetime=20240429,--该奖励类型关闭时间
		canPre=true,	--是否开启预览功能
		rewardPre = {
		--消费vip等级是索引
			[1] = {
				[1] = {itemtype = 3348213, monopoly = 0, num = 1},
			},
			[2] = {
				[1] = {itemtype = 3348214, monopoly = 0, num = 1},
			},
			[3] = {
				[1] = {itemtype = 3348215, monopoly = 0, num = 1},
			},
			[4] = {
				[1] = {itemtype = 3348216, monopoly = 0, num = 1},
			},
			[5] = {
				[1] = {itemtype = 3348217, monopoly = 0, num = 1},
			},
			[6] = {
				[1] = {itemtype = 3348218, monopoly = 0, num = 1},
			},
			[7] = {
				[1] = {itemtype = 3348219, monopoly = 0, num = 1},
			},
			[8] = {
				[1] = {itemtype = 3348220, monopoly = 0, num = 1},
			},
			[9] = {
				[1] = {itemtype = 3348221, monopoly = 0, num = 1},
			},
		},--这里是配置预览奖励的，我在下面处理了，你也可以添加到这里面来，加进来记得把后面的删除
		firstlev = 1,--预览奖励是从多少vip等级开始的，比如这个可能123456级都没有，从7级开始
	},
	
	[3]= {
		-- 奖励ID（任务部与服务端定义，对应VipAwardInfo）
		AwardID = 103,
		--是否可以重复领取
		getagain = false,
		--所需Vip等级
		viplev = 1,
		--奖励背景
		bg = "VIPjl_BG1",
		title = "VIPjl_WZ1",
		type = "STR_VIP_REWARD_TITLE_TIP2",--神纹豪礼
		tip="STR_VIP_REWARD_RULE_TIP2",--奖励描述与规则
		opentime = 20240903,--该奖励类型开放时间
		closetime=20240930,--该奖励类型关闭时间
		canPre=true,	--是否开启预览功能
		rewardPre = {
		--消费vip等级是索引
			[1] = {
				[1] = {itemtype = 3350198, monopoly = 0, num = 1},
			},
			[2] = {
				[1] = {itemtype = 3350199, monopoly = 0, num = 1},
			},
			[3] = {
				[1] = {itemtype = 3350200, monopoly = 0, num = 1},
			},
			[4] = {
				[1] = {itemtype = 3350201, monopoly = 0, num = 1},
			},
			[5] = {
				[1] = {itemtype = 3350202, monopoly = 0, num = 1},
			},
			[6] = {
				[1] = {itemtype = 3350203, monopoly = 0, num = 1},
			},
			[7] = {
				[1] = {itemtype = 3350204, monopoly = 0, num = 1},
			},
			[8] = {
				[1] = {itemtype = 3350205, monopoly = 0, num = 1},
			},
			[9] = {
				[1] = {itemtype = 3350206, monopoly = 0, num = 1},
			},
		},--这里是配置预览奖励的，我在下面处理了，你也可以添加到这里面来，加进来记得把后面的删除
		firstlev = 1,--预览奖励是从多少vip等级开始的，比如这个可能123456级都没有，从7级开始
	},
}

--用于计算是否显示该奖励类型
local function GetSplendidRewardIsOpen(nIndex, year, month, day)
	year = 1900+year
	month = 1 + month
	nIndex = 1+ nIndex
	local time = year * 10000 + month * 100 + day
	if SplendidRewardInfo[nIndex] == nil or
		SplendidRewardInfo[nIndex]["opentime"] > time or
		SplendidRewardInfo[nIndex]["closetime"] < time then
			return false
	end

	return true
end

--获取预览第一个奖励等级
local function GetFirstVipLev(type)
	return SplendidRewardInfo[type + 1].firstlev
end

local function GetUpdateVipLev(lev, type, next)
	type = type + 1
	if next == true then
		--注意，这边配置的是最大的消费vip等级
		local maxlev = 9
		return math.min(lev + 1, maxlev)
	else
		local minlev = 1
		if SplendidRewardInfo[type] ~= nil and
		 SplendidRewardInfo[type].firstlev ~= nil then
			minlev = SplendidRewardInfo[type].firstlev
		end

		return math.max(lev - 1, minlev)
	end

	return lev
end

local function GetSplendidRewardPreInfo(type, lev, index, key)
	type = 1 + type
	index = index + 1
	if SplendidRewardInfo[type] == nil or
	SplendidRewardInfo[type].rewardPre[lev] == nil then
		return nil
	end

	if "amount" == key then
		return #SplendidRewardInfo[type].rewardPre[lev]
	end

	return SplendidRewardInfo[type].rewardPre[lev][index][key]
end

local function GetVipPrivilegeInfo(nLev,key)
    return VipPrivilegeInfo[nLev][key]
end

local function GetVipPrivilegeInfoIcon(nLev,key,nIndex)
    return VipPrivilegeInfo[nLev][key][nIndex]
end

local function GetVipAwardInfo(nLev,key)
    return VipAwardInfo[nLev][key]
end

local function GetVipAwardItemInfo(nLev,key,nindex,key2)
    return VipAwardInfo[nLev][key][nindex][key2]
end

local function GetSplendidRewardInfo(index, key)
	if key == "amount" then
		return #SplendidRewardInfo		
	end

	return SplendidRewardInfo[index + 1][key]
end

local function GetGetStauts(heroLev, nextTime, serverTime, splendidRewardIndex)
	if SplendidRewardInfo[splendidRewardIndex + 1].getagain == false and nextTime ~= 0 then
		return 3
	end

	if SplendidRewardInfo[splendidRewardIndex + 1].viplev > heroLev then
		--等级不够
		return 1
	elseif serverTime < nextTime then
		--尚未冷却结束
		return 2
	else
		return 0
	end
end


-- 判断是VIP等级奖励还是豪礼奖励
-- nID 为礼包ID，返回true表示VIP等级奖励
local function IsNormalVipAward(nId)
	if (nId < 100) then
		return true
	end
	
	return false
end


-- 获取VIP总等级
local function GetVipCount()
    return #VipPrivilegeInfo
end

-- 获取当前等级，因为服务端只发总积分
-- 参数：score（总积分）
local function GetCurVipLev(score)
	for i=#VipPrivilegeInfo,0,-1 do
		if (VipPrivilegeInfo[i]["NextExp"] ~= 0 and score >= VipPrivilegeInfo[i]["NextExp"]) then
			return i + 1
		end
	end
	
	return 0
end

-- 是否是下个月到期的积分
-- 参数：nyear（积分获得日期，格式：YYYYMM 如：202309）
-- 参数：ncuryear（当前日期，格式：YYYYMM 如：202309）
local function IsNextMonthPassDue(nyear, ncuryear)
	-- 几个月后到期(4表示4个月后的下一个月到期)
	local ndueData = nyear + 3
	local nMonth = ndueData % 100
	if (nMonth > 12) then
		ndueData = (math.floor(ndueData / 100) + 1) * 100 + nMonth - 12
	end
	
	if (ndueData <= ncuryear) then
		return true
	else
		return false
	end
end

--当前地图id，当前vip等级
local function CanRebornInHere(idMap, nLev)
	if nLev < 7 then
		return false
	end
	--具体地图和等级限制请询问策划
	if idMap == 2057 or idMap == 1038 or idMap == 12326 then
		return true
	end
end

local function Unload()
    VipPrivilegeInfo = nil
	VipAwardInfo = nil
	SplendidRewardInfo = nil
	VipConsumption_GetSplendidRewardIsOpen = nil
	VipConsumption_GetSplendidRewardPreInfo = nil
	VipConsumption_GetUpdateVipLev = nil
	VipConsumption_GetFirstVipLev = nil
end

local VipConsumption = {
    GetVipPrivilegeInfo = GetVipPrivilegeInfo,
    GetVipAwardInfo = GetVipAwardInfo,
    GetVipAwardItemInfo = GetVipAwardItemInfo,
	GetCurVipLev = GetCurVipLev,
	IsNextMonthPassDue = IsNextMonthPassDue,
	GetVipCount = GetVipCount,
	IsNormalVipAward = IsNormalVipAward,
	GetSplendidRewardInfo = GetSplendidRewardInfo,
	GetGetStauts = GetGetStauts,
	GetVipPrivilegeInfoIcon = GetVipPrivilegeInfoIcon,
	CanRebornInHere = CanRebornInHere,
	GetSplendidRewardIsOpen = GetSplendidRewardIsOpen, 
	GetSplendidRewardPreInfo = GetSplendidRewardPreInfo,
	GetUpdateVipLev = GetUpdateVipLev,
	GetFirstVipLev = GetFirstVipLev,
Unload = Unload,
}

VipConsumption_GetVipPrivilegeInfo = VipConsumption.GetVipPrivilegeInfo
VipConsumption_GetVipAwardInfo = VipConsumption.GetVipAwardInfo
VipConsumption_GetVipAwardItemInfo = VipConsumption.GetVipAwardItemInfo
VipConsumption_GetCurVipLev = VipConsumption.GetCurVipLev
VipConsumption_IsNextMonthPassDue = VipConsumption.IsNextMonthPassDue
VipConsumption_GetVipCount = VipConsumption.GetVipCount
VipConsumption_IsNormalVipAward = VipConsumption.IsNormalVipAward
VipConsumption_GetSplendidRewardInfo = VipConsumption.GetSplendidRewardInfo
VipConsumption_GetGetStauts = VipConsumption.GetGetStauts
VipConsumption_GetVipPrivilegeInfoIcon = VipConsumption.GetVipPrivilegeInfoIcon
VipConsumption_CanRebornInHere = VipConsumption.CanRebornInHere
VipConsumption_GetSplendidRewardIsOpen = VipConsumption.GetSplendidRewardIsOpen
VipConsumption_GetSplendidRewardPreInfo = VipConsumption.GetSplendidRewardPreInfo
VipConsumption_GetUpdateVipLev = VipConsumption.GetUpdateVipLev
VipConsumption_GetFirstVipLev = VipConsumption.GetFirstVipLev
VipConsumption_Unload = VipConsumption.Unload

return VipConsumption