接口【优化】:新增公告界面分享类型,取消和文档的共享使用问题。

This commit is contained in:
jianweie code
2024-11-25 22:14:58 +08:00
parent 1b197e955a
commit fcb9f514be
2 changed files with 23 additions and 0 deletions

View File

@@ -615,6 +615,17 @@ namespace CoreCms.Net.Services
return jm;
}
break;
case (int)GlobalEnumVars.UrlSharePageType.Notice:
if (parameter.ContainsKey("noticeId"))
{
str = parameter["noticeId"]?.ToString();
}
else
{
jm.msg = "参数必须传noticeId";
return jm;
}
break;
default:
jm.msg = GlobalErrorCodeVars.Code10000;
return jm;
@@ -746,6 +757,13 @@ namespace CoreCms.Net.Services
jm.status = true;
}
break;
case (int)GlobalEnumVars.UrlSharePageType.Notice:
if (arr.Length == 1)
{
jm.data = new { noticeId = arr[0] };
jm.status = true;
}
break;
default:
jm.msg = GlobalErrorCodeVars.Code10000;
return jm;