Commit 7fa175d550421dabda74a887213f9922db2ca4b4

Authored by zhouhaihai
1 parent 7c5054a1

餐厅知名度

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/models/Diner.lua
... ... @@ -154,7 +154,7 @@ function Diner:updateSell(slot, calOnly)
154 154 sells[slot].level = self:getProperty("dishTree"):getv(sell.dish, 1)
155 155 sells[slot].reward = reward
156 156 self:setProperty("sells", json.encode(sells))
157   - self:incrProperty("popular",popular)
  157 + self:updateProperty({field = "popular", delta = popular})
158 158 self:checkDinerTask(DinerTask.SellDish, deltaCount, sell.dish)
159 159 end
160 160 return {
... ...