gitxsm 7 месяцев назад
Родитель
Сommit
d5d446fe4f

+ 1 - 1
script/module/anotherWorldBattle/AnotherWorldBattleCS.lua

@@ -1245,7 +1245,7 @@ function N2C_Try_Challengde_Point(msg)
     local now = os.time()
     local pointBattleTime = targetPointData.battleTime
     if pointBattleTime and now - pointBattleTime < AnotherWorldBattleDefine.AB_POINT_BATTLE_TIME then
-        return errTips(msg.sourceServerId, playerUuid, AnotherWorldBattleDefine.ERR_CODE_10)
+        return errTips(msg.sourceServerId, playerUuid, AnotherWorldBattleDefine.ERR_CODE_11)
     end
 
     -- 更新据点被挑战时间

+ 1 - 1
script/module/anotherWorldBattle/AnotherWorldBattleNS.lua

@@ -403,7 +403,7 @@ local function genAwardObjArr(unionOccupyInfo)
         local totalMinVal = calcMinute(occupyTimeArr)
         if totalMinVal > 0 then
             local itemId, itemNum = cityCfg.cityAward[1], cityCfg.cityAward[2]
-            itemList[itemId] = totalMinVal * itemNum
+            itemList[itemId] = (itemList[itemId] or 0) + totalMinVal * itemNum
         end
     end