Commit 212d1dd36c218d93bc05556d7f1b39514c53d5a0

Authored by 熊润斐
2 parents 1a5d40a6 318a7041

Merge branch 'develop' into tr/cb

src/models/Activity.lua
... ... @@ -347,6 +347,15 @@ activityFunc[Activity.ActivityType.PaySignIn] = {
347 347 end,
348 348 ["close"] = function(self, actType, notify)
349 349 self.owner.storeData:SetActGoodsFlag("paySignIn", 0)
  350 +
  351 + local rechargeRecord = self.owner.storeData:getProperty("payR")
  352 + for id, cfg in pairs(csvdb["shop_rechargeCsv"]) do
  353 + if cfg.shop == 2 and cfg.type == CardType.PaySignCard then
  354 + rechargeRecord[id] = nil
  355 + break
  356 + end
  357 + end
  358 + self.owner.storeData:updateProperty({field="payR", value=rechargeRecord})
350 359 end,
351 360 }
352 361  
... ...
src/models/RoleCross.lua
... ... @@ -287,7 +287,7 @@ end
287 287  
288 288 function CMD.friendBattleInfo(roleId)
289 289 local info = CMD.getProperties(roleId, {"pvpTBC", "hangTB"})
290   - return next(info.pvpTBC) and info.pvpTBC or info.hangTB
  290 + return (next(info.pvpTBC) and next(info.pvpTBC.heros)) and info.pvpTBC or info.hangTB
291 291 end
292 292  
293 293 function CMD.pvpCInfo(roleId)
... ...
src/models/Store.lua
... ... @@ -383,6 +383,7 @@ end
383 383 -- 购买付费签到 按开服时间算奖励
384 384 function Store:onBuyPaySignCard(dur)
385 385 local curTs = skynet.timex()
  386 + curTs = getServerOpenTs()
386 387  
387 388 self:SetActGoodsFlag("paySignIn", curTs)
388 389  
... ...