Skip to content

Commit d3531e4

Browse files
committed
bugfix
1 parent d3489ed commit d3531e4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/SSCMS.Core/SSCMS.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<PackageReference Include="System.Runtime.Loader" Version="4.3.0" />
2828
<PackageReference Include="SixLabors.Fonts" Version="1.0.0-beta0013" />
2929
<PackageReference Include="SixLabors.ImageSharp.Drawing" Version="1.0.0-beta0009" />
30-
<PackageReference Include="RestSharp" Version="106.11.7" />
30+
<PackageReference Include="RestSharp" Version="106.12.0" />
3131
<PackageReference Include="Senparc.Weixin" Version="6.8.101" />
3232
<PackageReference Include="Senparc.Weixin.WxOpen" Version="3.9.101" />
3333
<PackageReference Include="Senparc.Weixin.TenPay" Version="1.6.101.1" />

src/SSCMS.Web/Controllers/Admin/Cms/Editor/EditorController.Get.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ public async Task<ActionResult<GetResult>> Get([FromQuery]GetRequest request)
9191
content.Set(style.AttributeName, StringUtils.ToString(value));
9292
}
9393
}
94+
else if (style.InputType == InputType.Text || style.InputType == InputType.TextArea || style.InputType == InputType.TextEditor)
95+
{
96+
if (request.ContentId == 0)
97+
{
98+
content.Set(style.AttributeName, string.Empty);
99+
}
100+
}
94101
}
95102

96103
var siteUrl = await _pathManager.GetSiteUrlAsync(site, true);

0 commit comments

Comments
 (0)