Browse Source

Apewer-6.0.2:修正 GetParameter 问题。

dev
Elivo 5 years ago
parent
commit
47404f69ff
  1. 2
      Apewer/Apewer.csproj
  2. 16
      Apewer/Web/WebUtility.cs
  3. 6
      Apewer/_ChangeLog.md

2
Apewer/Apewer.csproj

@ -14,7 +14,7 @@
<TargetFrameworks>netstandard2.1;net20;net40;net461;netcoreapp3.1</TargetFrameworks> <TargetFrameworks>netstandard2.1;net20;net40;net461;netcoreapp3.1</TargetFrameworks>
<Title>Apewer</Title> <Title>Apewer</Title>
<Product>Apewer Libraries</Product> <Product>Apewer Libraries</Product>
<Version>6.0.0</Version> <Version>6.0.2</Version>
</PropertyGroup> </PropertyGroup>
<!-- Info --> <!-- Info -->

16
Apewer/Web/WebUtility.cs

@ -391,10 +391,12 @@ namespace Apewer.Web
foreach (var property in properties) foreach (var property in properties)
{ {
if (!property.IsProperty) continue; if (!property.IsProperty) continue;
if (!sameNames.Contains(property.Name) && property.Value != null) if (sameNames.Contains(property.Name) && property.Value != null)
{ {
var value = property.ToLower(); var value = property.Value;
if (!string.IsNullOrEmpty(value)) return value; if (value == null) continue;
var text = value.ToString();
if (!string.IsNullOrEmpty(text)) return text;
} }
} }
@ -403,10 +405,12 @@ namespace Apewer.Web
{ {
if (!property.IsProperty) continue; if (!property.IsProperty) continue;
var lowerName = TextUtility.ToLower(property.Name); var lowerName = TextUtility.ToLower(property.Name);
if (!lowerNames.Contains(lowerName) && property.Value != null) if (lowerNames.Contains(lowerName) && property.Value != null)
{ {
var value = property.ToLower(); var value = property.Value;
if (!string.IsNullOrEmpty(value)) return value; if (value == null) continue;
var text = value.ToString();
if (!string.IsNullOrEmpty(text)) return text;
} }
} }
} }

6
Apewer/_ChangeLog.md

@ -5,6 +5,12 @@
### 最新提交 ### 最新提交
### 6.0.2
- 修正 GetParameter 匹配 Json 的问题。
### 6.0.1
- 修正 GetParameter 匹配 Json 的问题。
### 6.0.0 ### 6.0.0
- 修改项目 Apewer.Library 为 Apewer; - 修改项目 Apewer.Library 为 Apewer;
- 删除命名空间 Apewer.Common,子项移入 Apewer; - 删除命名空间 Apewer.Common,子项移入 Apewer;

Loading…
Cancel
Save