|
|
@@ -65,11 +65,11 @@ function ActTotalRecharge.onEnd(actor)
|
|
65
|
65
|
for i = 1, #confs do
|
|
66
|
66
|
jprint("ActTotalRecharge.onEnd count:", data.count)
|
|
67
|
67
|
jprint("ActTotalRecharge.onEnd id:", confs[i].id)
|
|
68
|
|
- jprint("ActTotalRecharge.onEnd totalRecharge:", confs[i].totalRecharge)
|
|
|
68
|
+ jprint("ActTotalRecharge.onEnd recharge:", confs[i].recharge)
|
|
69
|
69
|
jprint("ActTotalRecharge.onEnd reward:", confs[i].reward)
|
|
70
|
|
- if confs[i].totalRecharge and confs[i].id then
|
|
|
70
|
+ if confs[i].recharge and confs[i].id then
|
|
71
|
71
|
if
|
|
72
|
|
- data.count >= tonumber(confs[i].totalRecharge) and
|
|
|
72
|
+ data.count >= tonumber(confs[i].recharge) and
|
|
73
|
73
|
not (data.rewardList and table.contains(data.rewardList, confs[i].id))
|
|
74
|
74
|
then
|
|
75
|
75
|
local tmp = string.toIntIntMap4Career(playerCareer, confs[i].reward, "#", "|")
|
|
|
@@ -109,7 +109,7 @@ end
|
|
109
|
109
|
|
|
110
|
110
|
function ActTotalRecharge.gainReward(actor, reqParameter)
|
|
111
|
111
|
local id = reqParameter["id"]
|
|
112
|
|
- local recharge = ConfigDataManager.getTableValue("cfg_Activity_daysTotalRecharge", "totalRecharge", "id", id)
|
|
|
112
|
+ local recharge = ConfigDataManager.getTableValue("cfg_Activity_daysTotalRecharge", "recharge", "id", id)
|
|
113
|
113
|
if recharge == nil then
|
|
114
|
114
|
tipinfo(actor, "无此档位")
|
|
115
|
115
|
return
|