Explorar el Código

调试cms

西昌缴费二期
ndbs hace 3 años
padre
commit
25cbf6e31f
Se han modificado 3 ficheros con 14 adiciones y 13 borrados
  1. +11
    -10
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Controllers/NewsController.cs
  2. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config
  3. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsEntity.cs

+ 11
- 10
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Controllers/NewsController.cs Ver fichero

@@ -95,9 +95,9 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers
if (entity.IsSend == "1")
{
//获取配置文件
string siteId = HttpUtility.UrlEncode(ConfigurationManager.AppSettings["SiteId"]);
string channelId = HttpUtility.UrlEncode(ConfigurationManager.AppSettings["ChannelId"]);
string ApiKey = HttpUtility.UrlEncode(ConfigurationManager.AppSettings["ApiKey"]);
string siteId = ConfigurationManager.AppSettings["SiteId"];
string channelId = ConfigurationManager.AppSettings["ChannelId"];
string ApiKey = ConfigurationManager.AppSettings["ApiKey"];
SemdNewList SendNew = new SemdNewList
{
Title = entity.F_FullHead,
@@ -110,10 +110,10 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers
AddUserName = entity.F_CreateUserName,
};
WebHeaderCollection ApiId = new WebHeaderCollection
{
{ "X-SS-API-KEY", ApiKey }
};
string responses = Util.HttpMethods.HttpPosts("http://localhost:8007/api/v1/contents/" + siteId + "/" + channelId, SendNew.ToJson(), ApiId);
{
{ "X-SS-API-KEY", ApiKey }
};
string responses = Util.HttpMethods.HttpPosts("http://192.168.50.127:8007/api/v1/contents/" + siteId + "/" + channelId, SendNew.ToJson(), ApiId);

#endregion
#region 修改审核状态
@@ -123,7 +123,7 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers
AuditList AList = new AuditList();
if (Nid != null)
{
AList.siteId = siteId;
AList.siteId = Convert.ToInt32(siteId);
List<contents> listCon = new List<contents>();
//这里应该循环,如果多个
contents con = new contents();
@@ -131,8 +131,9 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers
con.id = Convert.ToInt32(Nid);
listCon.Add(con);
AList.contents = listCon;
AList.reasons = "终审通过";
Util.HttpMethods.HttpPosts("http://localhost:8007/api/v1/contents/actions/check", AList.ToJson(), ApiId);
//AList.reasons = "终审通过";
//Util.HttpMethods.HttpPosts("http://192.168.50.127:8007/api/v1/contents/actions/check", AList.ToJson(), ApiId);
Util.HttpMethods.HttpPosts("http://192.168.50.127:8007/api/v1/contents/check", AList.ToJson(), ApiId);
}
#endregion
return Success("发布成功!");


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config Ver fichero

@@ -172,7 +172,7 @@
<add key="ForbidLoginMinutes" value="10"/>

<!--下发新闻配置-->
<add key="SiteId" value="1"/>
<add key="ChannelId" value="6"/>
<add key="SiteId" value="39"/>
<add key="ChannelId" value="49"/>
<add key="ApiKey" value="fafc361a-40c1-4060-8eee-ea796640c39c"/>
</appSettings>

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsEntity.cs Ver fichero

@@ -406,7 +406,7 @@ namespace Learun.Application.OA

public class AuditList
{
public string siteId { get; set; }
public int siteId { get; set; }
public List<contents> contents { get; set; }
public string reasons { get; set; }
}


Cargando…
Cancelar
Guardar