From 6bee0e79ba915ebdab6cf81b59e1aeb52d366822 Mon Sep 17 00:00:00 2001 From: mofangmin Date: Tue, 20 Aug 2024 17:28:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DchannelID=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/web/handler/share.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/web/handler/share.go b/modules/web/handler/share.go index ad0e99a..9a67953 100644 --- a/modules/web/handler/share.go +++ b/modules/web/handler/share.go @@ -107,10 +107,11 @@ func ShareInfo(c *gin.Context) { resp.TotalRecharge = call.GetUserShareRechargeAmount(a.UID, 1) if channel != nil { num := 10000 + channelId := channel.ChannelID if channel.ChannelID < num { - channel.ChannelID += num + channelId += num } - resp.ShareLink = channel.URL + "?code=" + shareInfo.Share + "&ch=" + fmt.Sprintf("%d", channel.ChannelID) + resp.ShareLink = channel.URL + "?code=" + shareInfo.Share + "&ch=" + fmt.Sprintf("%d", channelId) if a.Prefix != "" { resp.ShareLink = a.Prefix + "." + resp.ShareLink } else {