diff --git a/core/service.go b/core/service.go index fe2bfda..1c2553f 100644 --- a/core/service.go +++ b/core/service.go @@ -186,7 +186,7 @@ func (sh *serviceDescription) readProfile(authtype string, id string, binfo stri if err != nil { return "", err } - if userinfo.token == "" { + if len(userinfo.token) == 0 { return "", errors.New("refreshtoken token not found") } @@ -256,7 +256,7 @@ func (sh *serviceDescription) prepare(mg *Maingate) error { if len(sh.VersionSplits) == 0 { sh.VersionSplits = map[string]string{ - "": strings.Join(namesOnly, ","), + "default": strings.Join(namesOnly, ","), } } @@ -782,7 +782,7 @@ func (sh *serviceDescription) findVersionSplit(version string) []byte { } } } - return sh.divisionsSplits[""] + return sh.divisionsSplits["default"] } func (sh *serviceDescription) delacc(w http.ResponseWriter, r *http.Request) {