xingzai 1 жил өмнө
parent
commit
d3b817d19a

+ 3 - 0
services/user_admin_share.go

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