Commit a7654831 authored by hujiebin's avatar hujiebin

gameId for banner

parent 021368f7
...@@ -94,7 +94,7 @@ func SendDiamondChange(userId uint64, diamond uint32) error { ...@@ -94,7 +94,7 @@ func SendDiamondChange(userId uint64, diamond uint32) error {
// 发送游戏横幅 // 发送游戏横幅
// param winUserId:胜利的用户id // param winUserId:胜利的用户id
// param gameType 0:slot 5:luckybox 6:fruit // param gameType 0:slot 5:luckybox 6:fruit
func SendGlobalGameBanner(winUserId uint64, diamond uint64, avatar string, gameType uint32) error { func SendGlobalGameBanner(winUserId uint64, diamond uint64, avatar string, gameId uint64, gameType uint32) error {
bannerUrl := "" bannerUrl := ""
switch gameType { switch gameType {
case 0: case 0:
...@@ -105,6 +105,7 @@ func SendGlobalGameBanner(winUserId uint64, diamond uint64, avatar string, gameT ...@@ -105,6 +105,7 @@ func SendGlobalGameBanner(winUserId uint64, diamond uint64, avatar string, gameT
bannerUrl = "https://image.whoisamy.shop/hilo/resource/game/game_banner_fruit.png" bannerUrl = "https://image.whoisamy.shop/hilo/resource/game/game_banner_fruit.png"
} }
msg := &userProxy.GlobalGameBanner{ msg := &userProxy.GlobalGameBanner{
GameId: gameId,
GameType: gameType, GameType: gameType,
UserId: winUserId, UserId: winUserId,
Avatar: avatar, Avatar: avatar,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment