From 7f4a86f84f758774920ea348835954fec6db6588 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期五, 09 八月 2019 11:17:38 +0800 Subject: [PATCH] Merge branch 'master' of http://mobile.173on.com:10010/r/SnxxServerCode --- ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/AuctionHouse.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/AuctionHouse.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/AuctionHouse.py index adc2ff1..6ca7fd6 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/AuctionHouse.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/AuctionHouse.py @@ -661,6 +661,7 @@ openJobList = IpyGameDataPY.GetFuncEvalCfg("OpenJob", 1) for job in openJobList: jobPlayerCount = len(PyGameData.g_onedayJobPlayerLoginoffTimeDict.get(job, {})) + jobPlayerCount = max(1, jobPlayerCount) # 人数默认至少1个 totalPlayerCount += jobPlayerCount jobWeightList.append([jobPlayerCount, job]) GameWorld.DebugLog("职业人数: job=%s,count=%s" % (job, jobPlayerCount)) -- Gitblit v1.8.0