mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 14:53:26 +08:00
接口【优化】:新增公告界面分享类型,取消和文档的共享使用问题。
This commit is contained in:
@@ -2034,6 +2034,11 @@ namespace CoreCms.Net.Configuration
|
||||
/// </summary>
|
||||
[Description("13服务商品")]
|
||||
ServiceGoods = 13,
|
||||
/// <summary>
|
||||
/// 14公告页面
|
||||
/// </summary>
|
||||
[Description("14公告页面")]
|
||||
Notice = 14,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user