M_Global_Config = {} function M_Global_Config:getData(key) if self.datas == nil then return nil end return self.datas[key] end function M_Global_Config:init() self.datas = {} self.datas["TestKey1"] = {Key = "TestKey1", Desc = "XX字段", IntValue = 1, IntListValue = {2,3}, StrValue = "", StrListValue = {"lbt","lbbt"}, BoolValue = true} self.datas["TestKey2"] = {Key = "TestKey2", Desc = "XX说明", IntValue = 2, IntListValue = {}, StrValue = "lbt", StrListValue = {}, BoolValue = false} self.datas["dropGL"] = {Key = "dropGL", Desc = "道县id8 随机强化石打开获取权重,权重", IntValue = nil, IntListValue = {10,20,50,30}, StrValue = "", StrListValue = {}, BoolValue = nil} self.datas["dropID"] = {Key = "dropID", Desc = "道县id8 随机强化石打开获取道具ID,道具ID", IntValue = nil, IntListValue = {11,22,15,13}, StrValue = "", StrListValue = {}, BoolValue = nil} end M_Global_Config:init()