Browse Source

西昌缴费二期
ndbs 3 years ago
parent
commit
f6de20adf3
2 changed files with 9 additions and 3 deletions
  1. +6
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Controllers/NewsController.cs
  2. +3
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config

+ 6
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Controllers/NewsController.cs View File

@@ -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>
/// 删除表单数据


+ 3
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config View File

@@ -174,5 +174,7 @@
<!--下发新闻配置-->
<add key="SiteId" value="39"/>
<add key="ChannelId" value="49"/>
<add key="ApiKey" value="fafc361a-40c1-4060-8eee-ea796640c39c"/>
<add key="ApiKey" value="fafc361a-40c1-4060-8eee-ea796640c39c"/>
<add key="Ports" value="192.168.50.127:8007"/>
</appSettings>

Loading…
Cancel
Save