|
|
@@ -99,6 +99,8 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers |
|
|
|
string siteId = ConfigurationManager.AppSettings["SiteId"]; |
|
|
|
string channelId = ConfigurationManager.AppSettings["ChannelId"]; |
|
|
|
string ApiKey = ConfigurationManager.AppSettings["ApiKey"]; |
|
|
|
string Ports = ConfigurationManager.AppSettings["Ports"]; |
|
|
|
#region 下发到CMS |
|
|
|
SemdNewList SendNew = new SemdNewList |
|
|
|
{ |
|
|
|
Title = entity.F_FullHead, |
|
|
@@ -114,7 +116,7 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers |
|
|
|
{ |
|
|
|
{ "X-SS-API-KEY", ApiKey } |
|
|
|
}; |
|
|
|
string responses = Util.HttpMethods.HttpPosts("http://192.168.50.127:8007/api/v1/contents/" + siteId + "/" + channelId, SendNew.ToJson(), ApiId); |
|
|
|
string responses = Util.HttpMethods.HttpPosts("http://" + Ports + "/api/v1/contents/" + siteId + "/" + channelId, SendNew.ToJson(), ApiId); |
|
|
|
|
|
|
|
#endregion |
|
|
|
#region 修改审核状态 |
|
|
@@ -131,7 +133,8 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers |
|
|
|
listCon.Add(con); |
|
|
|
AList.contents = listCon; |
|
|
|
//AList.reasons = "终审通过"; |
|
|
|
Util.HttpMethods.HttpPosts("http://192.168.50.127:8007/api/v1/contents/check", AList.ToJson(), ApiId); |
|
|
|
Util.HttpMethods.HttpPosts("http://"+Ports+"/api/v1/contents/check", AList.ToJson(), ApiId); |
|
|
|
//Util.HttpMethods.HttpPosts("http://"+Ports+"/api/v1/contents/actions/check", AList.ToJson(), ApiId); |
|
|
|
} |
|
|
|
#endregion |
|
|
|
return Success("发布成功!"); |
|
|
@@ -140,6 +143,7 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers |
|
|
|
{ |
|
|
|
return Success("保存成功!"); |
|
|
|
} |
|
|
|
#endregion |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// 删除表单数据 |
|
|
|