diff --git a/Stardust.Server/Controllers/AppController.cs b/Stardust.Server/Controllers/AppController.cs index 6334e60d..8a00a698 100644 --- a/Stardust.Server/Controllers/AppController.cs +++ b/Stardust.Server/Controllers/AppController.cs @@ -367,13 +367,14 @@ public ServiceModel[] ResolveService([FromBody] ConsumeServiceInfo model) svc.Save(); info.Consumers = consumes.Count; + info.Save(); var models = _registryService.ResolveService(info, model, svc.Scope); // 记录应用消费服务得到的地址 - info.Address = models?.Select(e => new { e.Address, e.Address2, e.Weight }).ToJson(); + svc.Address = models?.Select(e => new { e.Address }).ToArray().ToJson(); - info.Save(); + svc.Save(); return models; }