Commit fef12fcaef0d53db672e393021e6040dbb6cc6d9

Authored by zhouhaihai
1 parent 6c012309

battlev

Showing 1 changed file with 20 additions and 24 deletions   Show diff stats
src/services/pvpd.lua
... ... @@ -103,31 +103,27 @@ end
103 103 local function hideMatchInfo()
104 104 local day, ctime = getDayAndTime()
105 105 local tempMatchCache = {}
106   - if day > globalCsv.pvp_cross_server_day then
107   - return MatchCache
108   - else
109   - for round, tempData in pairs(MatchCache) do
110   - if round == day and ctime < globalCsv.pvp_cross_server_show_result - 1 then
111   - tempMatchCache[round] = {}
112   - for idx, match in pairs(tempData) do
113   - tempMatchCache[round][idx] = {
114   - [1] = match[1],
115   - [2] = match[2],
116   - }
117   - end
118   - elseif round <= day then
119   - tempMatchCache[round] = {}
120   - for idx, match in pairs(tempData) do
121   - tempMatchCache[round][idx] = {
122   - [1] = match[1],
123   - [2] = match[2],
124   - win = match.win,
125   - battleV = {
126   - [match[1]] = (match.teams[match[1]] or {}).battleV,
127   - [match[2]] = (match.teams[match[2]] or {}).battleV,
128   - }
  106 + for round, tempData in pairs(MatchCache) do
  107 + if round == day and ctime < globalCsv.pvp_cross_server_show_result - 1 then
  108 + tempMatchCache[round] = {}
  109 + for idx, match in pairs(tempData) do
  110 + tempMatchCache[round][idx] = {
  111 + [1] = match[1],
  112 + [2] = match[2],
  113 + }
  114 + end
  115 + elseif round <= day then
  116 + tempMatchCache[round] = {}
  117 + for idx, match in pairs(tempData) do
  118 + tempMatchCache[round][idx] = {
  119 + [1] = match[1],
  120 + [2] = match[2],
  121 + win = match.win,
  122 + battleV = {
  123 + [match[1]] = (match.teams[match[1]] or {}).battleV,
  124 + [match[2]] = (match.teams[match[2]] or {}).battleV,
129 125 }
130   - end
  126 + }
131 127 end
132 128 end
133 129 end
... ...