mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-10-26 09:11:01 +00:00
⚡️ Improve
This commit is contained in:
@@ -6,7 +6,7 @@ type ShortLinkGenValidator struct {
|
||||
}
|
||||
|
||||
type GetUrlValidator struct {
|
||||
Hash string `form:"hash" binding:"required"` // Hash: 短链接
|
||||
Hash string `form:"hash" binding:"required"`
|
||||
Password string `form:"password"`
|
||||
}
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ func ParseQuery(c *gin.Context) (SubValidator, error) {
|
||||
},
|
||||
)
|
||||
}
|
||||
// 校验 Rule-Provider 是否有重名
|
||||
|
||||
names := make(map[string]bool)
|
||||
for _, ruleProvider := range query.RuleProviders {
|
||||
if _, ok := names[ruleProvider.Name]; ok {
|
||||
|
||||
Reference in New Issue
Block a user