【惊喜礼盒】礼包顺序调整
parent
688c8081fc
commit
74cdc4374f
|
|
@ -138,6 +138,7 @@ local TypeUpdateFunc = {
|
|||
for j = 1, #configData do
|
||||
if curData.rewards[i].missionId == configData[j].Id then
|
||||
curData.rewards[i].otherData.PackId = configData[j].PackId
|
||||
curData.rewards[i].otherData.Sort = configData[j].Sort
|
||||
curData.rewards[i].otherData.BuyDay = configData[j].BuyDay
|
||||
curData.rewards[i].otherData.Name = rechargeConfig[configData[j].PackId].Name
|
||||
curData.rewards[i].otherData.Reward = rechargeConfig[configData[j].PackId].RewardShow
|
||||
|
|
@ -153,7 +154,7 @@ local TypeUpdateFunc = {
|
|||
end
|
||||
end
|
||||
table.sort(curData.rewards,function (a,b)
|
||||
return a.otherData.PackId < b.otherData.PackId
|
||||
return a.otherData.Sort < b.otherData.Sort
|
||||
end)
|
||||
end,
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue