|
|
@@ -64,18 +64,21 @@ function ActTotalRecharge.onEnd(actor)
|
|
64
|
64
|
local confs = ConfigDataManager.getTable("cfg_Activity_daysTotalRecharge")
|
|
65
|
65
|
for i = 1, #confs do
|
|
66
|
66
|
jprint("ActTotalRecharge.onEnd count:", data.count)
|
|
|
67
|
+ jprint("ActTotalRecharge.onEnd id:", confs[i].id)
|
|
67
|
68
|
jprint("ActTotalRecharge.onEnd totalRecharge:", confs[i].totalRecharge)
|
|
68
|
|
- if
|
|
69
|
|
- data.count >= tonumber(confs[i].totalRecharge) and
|
|
70
|
|
- not (data.rewardList and table.contains(data.rewardList, confs[i].id))
|
|
71
|
|
- then
|
|
72
|
|
- local tmp = string.toIntIntMap4Career(playerCareer, confs[i].reward, "#", "|")
|
|
73
|
|
- if table.notNullOrEmpty(tmp) then
|
|
74
|
|
- for k, v in pairs(tmp) do
|
|
75
|
|
- if not mapItems[k] then
|
|
76
|
|
- mapItems[k] = v
|
|
77
|
|
- else
|
|
78
|
|
- mapItems[k] = mapItems[k] + v
|
|
|
69
|
+ if confs[i].totalRecharge and confs[i].id then
|
|
|
70
|
+ if
|
|
|
71
|
+ data.count >= tonumber(confs[i].totalRecharge) and
|
|
|
72
|
+ not (data.rewardList and table.contains(data.rewardList, confs[i].id))
|
|
|
73
|
+ then
|
|
|
74
|
+ local tmp = string.toIntIntMap4Career(playerCareer, confs[i].reward, "#", "|")
|
|
|
75
|
+ if table.notNullOrEmpty(tmp) then
|
|
|
76
|
+ for k, v in pairs(tmp) do
|
|
|
77
|
+ if not mapItems[k] then
|
|
|
78
|
+ mapItems[k] = v
|
|
|
79
|
+ else
|
|
|
80
|
+ mapItems[k] = mapItems[k] + v
|
|
|
81
|
+ end
|
|
79
|
82
|
end
|
|
80
|
83
|
end
|
|
81
|
84
|
end
|