diff --git a/api/controller/resources.go b/api/controller/resources.go index 73e649ba81..fe3482012a 100644 --- a/api/controller/resources.go +++ b/api/controller/resources.go @@ -1136,7 +1136,7 @@ func (t *TenantStruct) AddDependencys(w http.ResponseWriter, r *http.Request) { return } beDepServiceIds := data["be_dep_service_ids"].(string) - for _, beDepServiceID := range strings.Split(",", beDepServiceIds) { + for _, beDepServiceID := range strings.Split(beDepServiceIds, ",") { ds := &api_model.DependService{ TenantID: r.Context().Value(ctxutil.ContextKey("tenant_id")).(string), ServiceID: beDepServiceID,