Commit eda7b81732932bcf635c2bacd5b28f8472a96d84

Authored by zhangqijia
1 parent 879b2204

fix: 商店折扣为0 价格为零的bug

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
src/actions/StoreAction.lua
... ... @@ -290,6 +290,7 @@ function _M.shopBuyRpc(agent , data)
290 290 return 1
291 291 end
292 292  
  293 + if dataSet.disount == 0 then dataSet.disount = 10 end
293 294 local cost = {[dataSet.icon] = math.ceil(dataSet.cost * count * ((dataSet.disount or 10) / 10))}
294 295  
295 296  
... ...