@@ -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) {