xingzai 11 miesięcy temu
rodzic
commit
d82a2ab84d
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      services/user_admin_share.go

+ 3 - 1
services/user_admin_share.go

@@ -58,7 +58,9 @@ func AddCygxUserAdminShareHistory(user *models.WxUserItem, source, sourceTitle,
 	if inviteShareCode == "" {
 		return
 	}
-
+	if user.UserId == 0 {
+		return
+	}
 	//3秒之内多次请求,不重复记录
 	key := "CYGX_" + source + "_" + strconv.Itoa(sourceId) + "_" + strconv.Itoa(user.UserId)
 	if utils.Rc.IsExist(key) {