From 3b6a825869039253e8f80acad7eb996214ee7c05 Mon Sep 17 00:00:00 2001 From: ndbs Date: Mon, 27 Dec 2021 10:22:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88CMS=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Learun.Application.OA/News/NewsService.cs | 51 +++++++++---------- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsService.cs index 4ad7ec6b1..09e1fed2c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsService.cs +++ b/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); - #region 修改审核状态 - - string Nid = JsonConvert.DeserializeObject(responses).value.id; - AuditList AList = new AuditList(); - if (Nid != null) - { - AList.siteId = Convert.ToInt32(siteId); - List listCon = new List(); - //这里应该循环,如果多个 - 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(responses).value.id; + //AuditList AList = new AuditList(); + //if (Nid != null) + //{ + // AList.siteId = Convert.ToInt32(siteId); + // List listCon = new List(); + // //这里应该循环,如果多个 + // 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) @@ -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; } + //} }