Browse Source

[WHAT] 修正SEApiSecurityFilter key 為null

Dev
berlin-tzen 2 years ago
parent
commit
9bda9711a5
  1. 4
      EuroTran/EasyBL/WebApi/Filters/SEApiSecurityFilter.cs

4
EuroTran/EasyBL/WebApi/Filters/SEApiSecurityFilter.cs

@ -162,8 +162,12 @@ namespace EasyBL.WebApi.Filters
for (int f = 0; f < form.Count; f++)
{
var key = form.Keys[f];
if (!string.IsNullOrEmpty(key)) {
parameters.Add(key, form[key]);
}
}
// 第二步:把字典按Key的字母顺序排序
IDictionary<string, string> sortedParams = new SortedDictionary<string, string>(parameters);
var dem = sortedParams.GetEnumerator();

Loading…
Cancel
Save