huangyuhao80 1 неделя назад
Родитель
Сommit
ef1582c86d
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      meta/userapi/lua/ActTotalRecharge.lua

+ 4 - 4
meta/userapi/lua/ActTotalRecharge.lua

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