diff --git a/src/models/DailyPlugin.lua b/src/models/DailyPlugin.lua index b9140c4..213d5d6 100644 --- a/src/models/DailyPlugin.lua +++ b/src/models/DailyPlugin.lua @@ -371,14 +371,14 @@ function DailyPlugin.bind(Daily) --宝藏功能优化——增加"发现宝藏"功能 function Daily:buyTreasureExtra(treasureList) local boughtTreasure = {} - local treasureBase = self:getProperty("treasureExtraBase") + local treasureBase = self:getProperty("treasureBaseExtra") for id, val in pairs(treasureList) do if treasureBase >= val.treasure_value then boughtTreasure[id] = val treasureBase = treasureBase - val.treasure_value end end - self:updateProperty({field = "treasureExtraBase", value = treasureBase}) + self:updateProperty({field = "treasureBaseExtra", value = treasureBase}) return boughtTreasure end -- libgit2 0.21.2