refactor: enable model configuration on default group (close #143)

This commit is contained in:
JustSong
2023-06-09 18:05:51 +08:00
parent 45e9fd66e7
commit 813bf0bd66
3 changed files with 19 additions and 3 deletions

View File

@@ -13,9 +13,6 @@ type Ability struct {
}
func GetRandomSatisfiedChannel(group string, model string) (*Channel, error) {
if group == "default" {
return GetRandomChannel()
}
ability := Ability{}
var err error = nil
if common.UsingSQLite {