Commit 33db89b8357b2e5bb88f2a093a64f0270dc9297e

Authored by zhouhaihai
1 parent 7fa175d5

营业加速

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/models/Diner.lua
@@ -185,7 +185,7 @@ function Diner:expediteSell(slot) @@ -185,7 +185,7 @@ function Diner:expediteSell(slot)
185 sells[slot].time = sell.time - deltaTime 185 sells[slot].time = sell.time - deltaTime
186 sells[slot].count = lastCount 186 sells[slot].count = lastCount
187 self:setProperty("sells", json.encode(sells)) 187 self:setProperty("sells", json.encode(sells))
188 - self:incrProperty("popular",popular) 188 + self:updateProperty({field = "popular", delta = popular})
189 self:checkDinerTask(DinerTask.SellDish, expediteCount, sell.dish) 189 self:checkDinerTask(DinerTask.SellDish, expediteCount, sell.dish)
190 end 190 end
191 return { 191 return {