Skip to content

Commit

Permalink
Revert "OrderBy导致的客户端频繁reload"
Browse files Browse the repository at this point in the history
  • Loading branch information
kklldog authored May 25, 2023
1 parent 12f17c5 commit 9582eba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AgileConfig.Server.Service/ConfigService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,8 @@ public async Task<string> AppPublishedConfigsMd5WithInheritanced(string appId, s
{
var configs = await GetPublishedConfigsByAppIdWithInheritanced(appId, env);

var keyStr = string.Join('&', configs.Select(c => GenerateKey(c)).ToArray().OrderBy(k => k, StringComparer.InvariantCultureIgnoreCase));
var valStr = string.Join('&', configs.Select(c => c.Value).ToArray().OrderBy(v => v, StringComparer.InvariantCultureIgnoreCase));
var keyStr = string.Join('&', configs.Select(c => GenerateKey(c)).ToArray().OrderBy(k => k));
var valStr = string.Join('&', configs.Select(c => c.Value).ToArray().OrderBy(v => v));
var txt = $"{keyStr}&{valStr}";

return Encrypt.Md5(txt);
Expand Down

0 comments on commit 9582eba

Please sign in to comment.