【惊喜礼盒】礼包顺序调整

dev_chengFeng
ZhangBiao 2021-09-18 11:03:54 +08:00
parent 688c8081fc
commit 74cdc4374f
1 changed files with 2 additions and 1 deletions

View File

@ -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,