From 1ea6b2abf26da49d7b2f7ac6ac7ca18b337b417f Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Wed, 2 Aug 2023 17:25:19 +0800 Subject: [PATCH] check go panic --- rpc/user_center_func.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rpc/user_center_func.go b/rpc/user_center_func.go index 3144048..47f7732 100644 --- a/rpc/user_center_func.go +++ b/rpc/user_center_func.go @@ -99,6 +99,7 @@ func SendDiamondChange(userId uint64, diamond, pinkDiamond uint32) error { // param gameType 0: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 { + defer utils.CheckGoPanic() bannerUrl := "" switch gameType { case 0: -- 2.22.0