Commit 65391b1dd7af489d7050dae7bbb0befe58b7464e
Merge branch 'develop' into tr/publish
Showing
3 changed files
with
11 additions
and
1 deletions
Show diff stats
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