From aa09a77073550c3de043e880f93d18112d7f89d0 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Mon, 8 May 2023 14:56:55 +0800 Subject: [PATCH] =?UTF-8?q?candy=E6=A8=AA=E5=B9=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rpc/user_center_func.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpc/user_center_func.go b/rpc/user_center_func.go index 7689af0..98e6ea2 100644 --- a/rpc/user_center_func.go +++ b/rpc/user_center_func.go @@ -94,7 +94,7 @@ func SendDiamondChange(userId uint64, diamond uint32) error { // 发送游戏横幅 // param winUserId:胜利的用户id // param gameType 0:slot 5:luckybox 6:fruit -// param gameId 7:slot 5:luckybox 6:fruit +// param gameId 7:slot 8:candy 5:luckybox 6:fruit func SendGlobalGameBanner(winUserId uint64, diamond uint64, avatar string, gameId uint64, gameType uint32) error { bannerUrl := "" switch gameType { @@ -105,6 +105,9 @@ func SendGlobalGameBanner(winUserId uint64, diamond uint64, avatar string, gameI case 6: bannerUrl = "https://image.whoisamy.shop/hilo/resource/game/game_banner_fruit.png" } + if gameId == uint64(8) { + bannerUrl = "https://image.whoisamy.shop/hilo/resource/game/game_banner_fruit.png" // todo! + } msg := &userProxy.GlobalGameBanner{ GameId: gameId, GameType: gameType, -- 2.22.0