From 6495a96f4e73148c4f3a5c376fff577acfcd55d0 Mon Sep 17 00:00:00 2001 From: by <123456@qq.com> Date: Sat, 29 Jun 2024 18:28:33 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=BB=E7=9F=B3=E5=AD=98=E9=92=B1=E7=BD=90?= =?UTF-8?q?=E9=9C=80=E6=B1=82=E6=9B=B4=E6=94=B9=E5=8F=AA=E5=9C=A8tienlen?= =?UTF-8?q?=E4=B8=AD=E5=A2=9E=E5=8A=A0=E9=92=BB=E7=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/action_server.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/worldsrv/action_server.go b/worldsrv/action_server.go index 79b359b..b1a6782 100644 --- a/worldsrv/action_server.go +++ b/worldsrv/action_server.go @@ -492,7 +492,6 @@ func init() { Num: playerBet.GetGain(), }) } - //游戏中输金币 if playerBet.GetGain() < 0 && playerBet.WinState != 1 { TaskSubjectSingleton.Touch(common.TaskTypeLoseCoin, &TaskData{ SnId: player.SnId, @@ -519,9 +518,17 @@ func init() { Num: playerBet.GetGain(), }) } - //tienlen 游戏赢的金币 + // tienlen游戏中赢金币 if playerBet.GetGain() > 0 || playerBet.WinState == 1 { TaskSubjectSingleton.Touch(common.TaskTypeTienlenWinCoin, &TaskData{ + SnId: player.SnId, + GameID: scene.gameId, + GameFreeID: scene.dbGameFree.GetId(), + Num: playerBet.GetGain(), + }) + } + if playerBet.GetGain() > 0 || playerBet.WinState == 1 { + TaskSubjectSingleton.Touch(common.TaskTypeTienlenWinTimes, &TaskData{ SnId: player.SnId, GameID: scene.gameId, GameFreeID: scene.dbGameFree.GetId(),