fix: 修复模板中非select、url-test策略组被输出为null的问题

This commit is contained in:
2023-09-29 15:58:38 +08:00
parent 773424cdb0
commit 50877b1691
2 changed files with 66 additions and 21 deletions

View File

@ -249,7 +249,7 @@ func MergeSubAndTemplate(temp *model.Subscription, sub *model.Subscription) {
if temp.ProxyGroups[i].IsCountryGrop {
continue
}
newProxies := make([]string, 0, len(temp.ProxyGroups[i].Proxies))
newProxies := make([]string, 0)
countryGroupMap := make(map[string]model.ProxyGroup)
for _, v := range sub.ProxyGroups {
if v.IsCountryGrop {