From c47c1381de4903da85f7fe7ad3cece9b7905b5ff Mon Sep 17 00:00:00 2001 From: mofangmin Date: Tue, 20 Aug 2024 15:37:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E4=BA=AB=E9=93=BE=E6=8E=A5=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/web/handler/share.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/web/handler/share.go b/modules/web/handler/share.go index da2c5e5..ad0e99a 100644 --- a/modules/web/handler/share.go +++ b/modules/web/handler/share.go @@ -106,6 +106,10 @@ func ShareInfo(c *gin.Context) { resp.RechargeCount = call.GetUserShareRecharges(a.UID, 1) resp.TotalRecharge = call.GetUserShareRechargeAmount(a.UID, 1) if channel != nil { + num := 10000 + if channel.ChannelID < num { + channel.ChannelID += num + } resp.ShareLink = channel.URL + "?code=" + shareInfo.Share + "&ch=" + fmt.Sprintf("%d", channel.ChannelID) if a.Prefix != "" { resp.ShareLink = a.Prefix + "." + resp.ShareLink