瀏覽代碼

cms审核id

临城职教中职
ndbs 2 年之前
父節點
當前提交
526ebce7a2
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsEntity.cs
  2. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsService.cs

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsEntity.cs 查看文件

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


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


+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/News/NewsService.cs 查看文件

@@ -251,12 +251,12 @@ 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 修改审核状态 #region 修改审核状态
string Nid = JsonConvert.DeserializeObject<Root>(responses).value.id;
string Nid = JsonConvert.DeserializeObject<Root>(responses).value.id;
AuditList AList = new AuditList(); AuditList AList = new AuditList();
if (Nid != null) if (Nid != null)
{ {
AList.siteId = siteId;
AList.siteId = Convert.ToInt32(siteId);
List<contents> listCon = new List<contents>(); List<contents> listCon = new List<contents>();
//这里应该循环,如果多个 //这里应该循环,如果多个
contents con = new contents(); contents con = new contents();


Loading…
取消
儲存