feat: publish sanitized custom.97 source

This commit is contained in:
cneicy committed 2026-10-27 20:43:39 +08:00
1 parent 8e6ed0317b
commit 86c0276156
1022 files changed
+69903 -19207

No files matched your search

+7 -1
View File
@@ -48,6 +48,11 @@ func GetUserGroups(c *gin.Context) {
common.ApiError(c, err)
return
}
visionUnavailable, err := service.VisionUnavailableGroups(c.Request.Context())
if err != nil {
common.ApiError(c, err)
return
}
userUsableGroups := service.GetUserUsableGroups(userGroup)
for groupName, _ := range ratio_setting.GetGroupRatioCopy() {
if _, ok := enabledGroups[groupName]; !ok {
@@ -61,6 +66,7 @@ func GetUserGroups(c *gin.Context) {
"has_personal_ratio": model.HasPersonalGroupRatio(c, groupName),
"tags": metadata[groupName].Tags,
"recent_degraded": recent[groupName] && !metadata[groupName].HideRecentDegraded,
"vision_unavailable": visionUnavailable[groupName],
"desc": desc,
}
}
@@ -68,7 +74,7 @@ func GetUserGroups(c *gin.Context) {
if len(usableGroups) > 0 {
if _, ok := userUsableGroups["auto"]; ok {
usableGroups["auto"] = map[string]any{
"ratio": "自动",
"ratio": "auto",
"desc": setting.GetUsableGroupDescription("auto"),
}
}