更新api

This commit is contained in:
2018-12-03 16:16:18 +08:00
parent 3d4d9f2d3c
commit 9c1cce3505
6 changed files with 73 additions and 31 deletions
@@ -30,7 +30,7 @@ namespace COMCMS.Web.Controllers.api
/// <returns></returns>
[HttpGet]
[CheckFilter]
public object GetArticleList(int kid, int pagesize = 10, int page = 1, string random = "", string timeStamp = "", string signature = "")
public object GetArticleList(int kid, int pagesize = 10, int page = 1)
{
var where = Article._.IsHide != 1;
if (kid > 0)
@@ -83,7 +83,7 @@ namespace COMCMS.Web.Controllers.api
/// <returns></returns>
[HttpGet]
[CheckFilter]
public object GetArticleListWidthSub(int kid, int pagesize = 10, int page = 1, string key = "", string random = "", string timeStamp = "", string signature = "")
public object GetArticleListWidthSub(int kid, int pagesize = 10, int page = 1, string key = "")
{
var where = Article._.IsHide != 1;
@@ -154,7 +154,7 @@ namespace COMCMS.Web.Controllers.api
/// <returns></returns>
[HttpGet]
[CheckFilter]
public object GetArticleDetail(int id, string random = "", string timeStamp = "", string signature = "")
public object GetArticleDetail(int id)
{
//获取商品
Article entity = Article.FindById(id);
@@ -173,7 +173,7 @@ namespace COMCMS.Web.Controllers.api
#region 获取文章栏目详情,并带下一级栏目
[HttpGet]
[CheckFilter]
public object GetArticleCategory(int id, string random = "", string timeStamp = "", string signature = "")
public object GetArticleCategory(int id)
{
ArticleCategory entity = ArticleCategory.FindById(id);
if (entity == null)