Commit 98699b0c482a79311315905d112c810fb126ee84

Authored by chenyueqi
1 parent adfde2d7

自动结算海岛贸易季 捐赠奖励领取报错

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
src/models/RolePlugin.lua
@@ -1233,8 +1233,8 @@ function RolePlugin.bind(Role) @@ -1233,8 +1233,8 @@ function RolePlugin.bind(Role)
1233 end 1233 end
1234 if done then 1234 if done then
1235 update = true 1235 update = true
1236 - self:award(data.phase_award, {log = {desc = "seaportReward", int1 = set[1].phase, int2 = set[1].id}})  
1237 - donate[id] = 1 1236 + self:award(set[1].phase_award, {log = {desc = "seaportReward", int1 = set[1].phase, int2 = set[1].id}})
  1237 + donate[idx] = 1
1238 end 1238 end
1239 end 1239 end
1240 seaport.donate = donate 1240 seaport.donate = donate
@@ -1323,7 +1323,7 @@ function RolePlugin.bind(Role) @@ -1323,7 +1323,7 @@ function RolePlugin.bind(Role)
1323 donate = {} 1323 donate = {}
1324 } 1324 }
1325 end 1325 end
1326 - self:setProperty("seaport",seaport) 1326 + self:updateProperty({field = "seaport", value = seaport})
1327 end 1327 end
1328 end 1328 end
1329 1329