Skip to content

Commit

Permalink
修正错误赋值
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Jul 15, 2024
1 parent 0bfa5f6 commit a8e1eeb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Stardust.Server/Controllers/AppController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a8e1eeb

Please sign in to comment.