Compare commits

..

No commits in common. "f0c42316f7044904acbc41e0589855d1124682bd" and "7ceef9878c04e9a90e6d74dac90a73867d482402" have entirely different histories.

2 changed files with 3 additions and 4 deletions

View File

@ -28,7 +28,7 @@ func (this *AddCoinTransactHandler) OnExcute(tNode *transact.TransNode, ud inter
s := p.GetScene()
if s != nil {
sp := s.GetScenePolicy()
if sp != nil && sp.CanAddCoin(s, p, ctx.Coin) && !s.IsMatchScene() {
if sp != nil && sp.CanAddCoin(s, p, ctx.Coin) {
p.AddCoinAsync(ctx.Coin, ctx.GainWay, true, ctx.Broadcast, ctx.Oper, ctx.Remark, ctx.WriteLog)
//触发下事件
sp.OnPlayerEvent(s, p, base.PlayerEventRecharge, []int64{ctx.Coin})
@ -57,7 +57,7 @@ func (this *AddCoinTransactHandler) OnRollBack(tNode *transact.TransNode) transa
s := p.GetScene()
if s != nil {
sp := s.GetScenePolicy()
if sp != nil && sp.CanAddCoin(s, p, -ctx.Coin) && !s.IsMatchScene() {
if sp != nil && sp.CanAddCoin(s, p, -ctx.Coin) {
p.AddCoinAsync(-ctx.Coin, ctx.GainWay, true, ctx.Broadcast, ctx.Oper, ctx.Remark, ctx.WriteLog)
//触发下事件
sp.OnPlayerEvent(s, p, base.PlayerEventRecharge, []int64{0})

View File

@ -1965,7 +1965,7 @@ func (this *Player) AddCoin(num, add int64, gainWay int32, oper, remark string)
//this.TotalData(num, gainWay)
async := false
if num > 0 && this.scene != nil && !this.scene.IsTestScene() && !this.scene.IsMatchScene() && this.scene.sceneMode != common.SceneMode_Thr { //游戏场中加币,需要同步到gamesrv上
if num > 0 && this.scene != nil && !this.scene.IsTestScene() && this.scene.sceneMode != common.SceneMode_Thr { //游戏场中加币,需要同步到gamesrv上
if StartAsyncAddCoinTransact(this, num, gainWay, oper, remark, true, 0, true) {
async = true
}
@ -3932,7 +3932,6 @@ func (this *Player) GetVIPLevel() int32 {
if vip != this.VIP {
//玩家VIP升级
this.SCVIPInfo()
PetMgrSington.CheckSkinRed(this)
logger.Logger.Trace("VIP升级")
}
this.VIP = vip