From e1181b620742ff41be1092a9f25b8ebcbe12d04c Mon Sep 17 00:00:00 2001 From: zhora Date: Fri, 22 Aug 2025 19:19:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- call/config.go | 2 +- call/share.go | 1 + modules/web/middleware/token.go | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/call/config.go b/call/config.go index cea43c9..92e9bf9 100644 --- a/call/config.go +++ b/call/config.go @@ -1072,7 +1072,7 @@ func GetConfigShare(level, channel int) *common.ConfigShare { if v.Level != level { continue } - if v.Channel == channel || v.Channel == channel-10000 { + if v.Channel == channel || v.Channel == channel-10000 || v.Channel == 0 { return v } } diff --git a/call/share.go b/call/share.go index cf05fce..5e424ec 100644 --- a/call/share.go +++ b/call/share.go @@ -22,6 +22,7 @@ func GetShareInfo(uid int) *common.ShareInfo { shareInfo.ChannelID = info.ChannelID shareInfo.Share = util.GetShareCode(uid) shareInfo.CreateTime = time.Now().Unix() + shareInfo.Level = 1 db.Mysql().Create(shareInfo) } return shareInfo diff --git a/modules/web/middleware/token.go b/modules/web/middleware/token.go index b0fa9e6..61abb8c 100644 --- a/modules/web/middleware/token.go +++ b/modules/web/middleware/token.go @@ -40,7 +40,6 @@ var ( "/account/phone/login": {}, "/account/phone/resetPass": {}, "/balance/recharge/info": {}, - "/share/info": {}, "/vip/info": {}, "/share/reference": {}, "/share/report": {},