Commit 55289e785c054e85eab9a3cb63e8ba97bfba584d

Authored by gaofengduan
1 parent 020fc7ed

fix diner expediteSellRpc

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
src/models/Diner.lua
... ... @@ -221,8 +221,9 @@ function Diner:expediteSell(slot)
221 221 expediteCount = math.min(expediteCount, sell.count)
222 222 local lastCount = sell.count - expediteCount
223 223 local reward, popular = self:calSellReward(sell, expediteCount, dishData)
224   -
  224 + local deltaTime = math.floor(expediteTime - sellTime * expediteCount)
225 225 if expediteCount > 0 then
  226 + sells[slot].time = sell.time - deltaTime
226 227 sells[slot].count = lastCount
227 228 self:setProperty("sells", json.encode(sells))
228 229 self:incrProperty("popular",popular)
... ...