|
@@ -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; } |
|
|
|
|
|
//} |
|
|
} |
|
|
} |