mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 17:53:25 +08:00
接口【优化】:新增公告界面分享类型,取消和文档的共享使用问题。
This commit is contained in:
@@ -2034,6 +2034,11 @@ namespace CoreCms.Net.Configuration
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[Description("13服务商品")]
|
[Description("13服务商品")]
|
||||||
ServiceGoods = 13,
|
ServiceGoods = 13,
|
||||||
|
/// <summary>
|
||||||
|
/// 14公告页面
|
||||||
|
/// </summary>
|
||||||
|
[Description("14公告页面")]
|
||||||
|
Notice = 14,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -615,6 +615,17 @@ namespace CoreCms.Net.Services
|
|||||||
return jm;
|
return jm;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case (int)GlobalEnumVars.UrlSharePageType.Notice:
|
||||||
|
if (parameter.ContainsKey("noticeId"))
|
||||||
|
{
|
||||||
|
str = parameter["noticeId"]?.ToString();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
jm.msg = "参数必须传noticeId";
|
||||||
|
return jm;
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
jm.msg = GlobalErrorCodeVars.Code10000;
|
jm.msg = GlobalErrorCodeVars.Code10000;
|
||||||
return jm;
|
return jm;
|
||||||
@@ -746,6 +757,13 @@ namespace CoreCms.Net.Services
|
|||||||
jm.status = true;
|
jm.status = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case (int)GlobalEnumVars.UrlSharePageType.Notice:
|
||||||
|
if (arr.Length == 1)
|
||||||
|
{
|
||||||
|
jm.data = new { noticeId = arr[0] };
|
||||||
|
jm.status = true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
jm.msg = GlobalErrorCodeVars.Code10000;
|
jm.msg = GlobalErrorCodeVars.Code10000;
|
||||||
return jm;
|
return jm;
|
||||||
|
|||||||
Reference in New Issue
Block a user