更新组件,修复bug
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="NewLife.XCode" Version="9.9.6839.35285" />
|
||||
<PackageReference Include="NewLife.XCode" Version="9.9.6881.41312" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace COMCMS.Core
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_LinkKind == null && KId > 0 && !Dirtys.ContainsKey("LinkKind_" + KId))
|
||||
if (_LinkKind == null && KId > 0 && !Dirtys["LinkKind_" + KId])
|
||||
{
|
||||
_LinkKind = LinkKind.Find(LinkKind._.Id == KId);
|
||||
Dirtys["LinkKind_" + KId] = true;
|
||||
|
||||
@@ -103,7 +103,7 @@ namespace COMCMS.Core
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_ListEvent == null && Id > 0 && !Dirtys.ContainsKey("ListEvent_" + Id))
|
||||
if (_ListEvent == null && Id > 0 && !Dirtys["ListEvent_" + Id])
|
||||
{
|
||||
_ListEvent = AdminMenuEvent.FindAll(AdminMenuEvent._.MenuId == Id, AdminMenuEvent._.Id.Asc(), null, 0, 0);
|
||||
Dirtys["ListEvent_" + Id] = true;
|
||||
|
||||
@@ -154,7 +154,7 @@ namespace COMCMS.Core
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_Roles == null && RoleId > 0 && !Dirtys.ContainsKey("RoleId_" + RoleId))
|
||||
if (_Roles == null && RoleId > 0 && !Dirtys["RoleId_" + RoleId])
|
||||
{
|
||||
_Roles = MemberRoles.Find(MemberRoles._.Id == RoleId);
|
||||
Dirtys["RoleId_" + RoleId] = true;
|
||||
|
||||
@@ -110,7 +110,7 @@ namespace COMCMS.Core
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_Roles == null && RoleId > 0 && !Dirtys.ContainsKey("AdminRoleId_" + RoleId))
|
||||
if (_Roles == null && RoleId > 0 && !Dirtys["AdminRoleId_" + RoleId])
|
||||
{
|
||||
_Roles = AdminRoles.Find(AdminRoles._.Id == RoleId);
|
||||
Dirtys["AdminRoleId_" + RoleId] = true;
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace COMCMS.Core
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_AttachConfigEntity == null && !Dirtys.ContainsKey("AttachConfig"))
|
||||
if (_AttachConfigEntity == null && !Dirtys["AttachConfig"])
|
||||
{
|
||||
OtherConfig ac = OtherConfig.Find(OtherConfig._.ConfigName == "attach");
|
||||
|
||||
@@ -105,7 +105,7 @@ namespace COMCMS.Core
|
||||
if (!string.IsNullOrEmpty(ac.ConfigValue))
|
||||
{
|
||||
_AttachConfigEntity = JsonConvert.DeserializeObject<AttachConfigEntity>(ac.ConfigValue);
|
||||
Dirtys.Add("AttachConfig", true);
|
||||
Dirtys["AttachConfig"] = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -137,14 +137,14 @@ namespace COMCMS.Core
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_SMTPConfigEntity == null && !Dirtys.ContainsKey("SMTPConfig"))
|
||||
if (_SMTPConfigEntity == null && !Dirtys["SMTPConfig"])
|
||||
{
|
||||
OtherConfig ac = OtherConfig.Find(OtherConfig._.ConfigName == "smtp");
|
||||
|
||||
if (ac != null)
|
||||
{
|
||||
_SMTPConfigEntity = JsonConvert.DeserializeObject<SMTPConfigEntity>(ac.ConfigValue);
|
||||
Dirtys.Add("SMTPConfig", true);
|
||||
Dirtys["SMTPConfig"] = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user