From 2bbef647e9e66cb3670f8ffe599fb63d6ed0e8a0 Mon Sep 17 00:00:00 2001 From: mofangmin Date: Fri, 13 Sep 2024 17:47:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E5=BE=AA=E7=8E=AF=E7=BB=91?= =?UTF-8?q?=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/web/handler/activity.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/web/handler/activity.go b/modules/web/handler/activity.go index de8331a..27d082b 100644 --- a/modules/web/handler/activity.go +++ b/modules/web/handler/activity.go @@ -782,7 +782,8 @@ func ActivityLuckyCodeDraw(c *gin.Context) { // 判断是否为分享吗 upShareInfo := call.GetShareInfoByCode(req.LuckyCode) if upShareInfo.ID > 0 { - if upShareInfo.UID == a.UID { + // 防止循环绑定 + if upShareInfo.UID == a.UID || a.UID == upShareInfo.UP1 || a.UID == upShareInfo.UP2 || a.UID == upShareInfo.UP3 { a.Code = values.CodeRetry a.Msg = "code error" return