🗑️ chore(custom channel): Remove custom channel support from upstream ratio sync

Remove all custom channel functionality from the upstream ratio sync feature to simplify the codebase and focus on database-stored channels only.

Changes:
- Remove custom channel UI components and related state management
- Remove custom channel testing and validation logic
- Simplify ChannelSelectorModal by removing custom channel input fields
- Update API payload to only include channel_ids, removing custom_channels
- Remove custom channel processing logic from backend controller
- Update import path for DEFAULT_ENDPOINT constant

Files modified:
- web/src/pages/Setting/Ratio/UpstreamRatioSync.js
- web/src/components/settings/ChannelSelectorModal.js
- controller/ratio_sync.go

This change streamlines the ratio synchronization workflow by focusing solely on pre-configured database channels, reducing complexity and potential maintenance overhead.
This commit is contained in:
Apple\Apple
2025-06-19 15:17:05 +08:00
parent 7975cdf3bf
commit fb4ff63bad
5 changed files with 7 additions and 169 deletions

View File

@@ -66,7 +66,6 @@ func FetchUpstreamRatios(c *gin.Context) {
})
}
}
upstreams = append(upstreams, req.CustomChannels...)
var wg sync.WaitGroup
ch := make(chan upstreamResult, len(upstreams))