Commit a4d3a28a1c4b31b4c63e507bf588f76ab6748093

Authored by zhangqijia
1 parent fcb9a070

fix: shopnormal 0元商品已购买的 return 6

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/actions/StoreAction.lua
... ... @@ -385,7 +385,7 @@ function _M.shopBuyRpc(agent , data)
385 385 local buyRecord = role.storeData:getProperty("buyR")
386 386 if math.illegalNum(count, 1, (dataSet.limit == 0 and 10000 or dataSet.limit - (buyRecord[id] or 0))) then
387 387 skynet.error(string.format("shop buy over limit, user_id:%d, goods_id:%d", role:getProperty("id"), id))
388   - return 1
  388 + return 6
389 389 end
390 390  
391 391 local cost
... ...