Kaynağa Gözat

取消CMS审核

临城职教中职
ndbs 2 yıl önce
ebeveyn
işleme
3b6a825869
1 değiştirilmiş dosya ile 25 ekleme ve 26 silme
  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 Dosyayı Görüntüle

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

Yükleniyor…
İptal
Kaydet