소스 검색

取消CMS审核

临城职教中职
ndbs 2 년 전
부모
커밋
3b6a825869
1개의 변경된 파일25개의 추가작업 그리고 26개의 파일을 삭제
  1. +25
    -26
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsService.cs

+ 25
- 26
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsService.cs 파일 보기

@@ -251,24 +251,23 @@ namespace Learun.Application.OA


string responses = HttpMethods.HttpPosts("http://" + ports + "/api/v1/contents/" + siteId + "/" + channelId, SendNew.ToJson(), ApiId); string responses = HttpMethods.HttpPosts("http://" + ports + "/api/v1/contents/" + siteId + "/" + channelId, SendNew.ToJson(), ApiId);


#region 修改审核状态

string Nid = JsonConvert.DeserializeObject<Root>(responses).value.id;
AuditList AList = new AuditList();
if (Nid != null)
{
AList.siteId = Convert.ToInt32(siteId);
List<contents> listCon = new List<contents>();
//这里应该循环,如果多个
contents con = new contents();
con.channelId = Convert.ToInt32(channelId);
con.id = Convert.ToInt32(Nid);
listCon.Add(con);
AList.contents = listCon;
//AList.reasons = "终审通过";
HttpMethods.HttpPosts("http://" + ports + "/api/v1/contents/check", AList.ToJson(), ApiId);
}
#endregion
//#region 修改审核状态
//string Nid = JsonConvert.DeserializeObject<Root>(responses).value.id;
//AuditList AList = new AuditList();
//if (Nid != null)
//{
// AList.siteId = Convert.ToInt32(siteId);
// List<contents> listCon = new List<contents>();
// //这里应该循环,如果多个
// contents con = new contents();
// con.channelId = Convert.ToInt32(channelId);
// con.id = Convert.ToInt32(Nid);
// listCon.Add(con);
// AList.contents = listCon;
// //AList.reasons = "终审通过";
// HttpMethods.HttpPosts("http://" + ports + "/api/v1/contents/check", AList.ToJson(), ApiId);
//}
//#endregion
} }
} }
catch (Exception ex) catch (Exception ex)
@@ -279,13 +278,13 @@ namespace Learun.Application.OA


} }


public class Root
{
public RootValue value { get; set; }
}
//public class Root
//{
// public RootValue value { get; set; }
//}


public class RootValue
{
public string id { get; set; }
}
//public class RootValue
//{
// public string id { get; set; }
//}
} }

불러오는 중...
취소
저장