更新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
+11 -1
View File
@@ -20,6 +20,7 @@ namespace COMCMS.Web.Controllers.api
{
// GET: api/<controller>
[HttpGet]
[CheckFilter]
public object Get()
{
Config cfg = Config.GetSystemConfig();
@@ -37,10 +38,19 @@ namespace COMCMS.Web.Controllers.api
/// <returns></returns>
[HttpGet]
[CheckFilter]
public ReJson CheckSign(string id, string random = "", string timeStamp = "", string signature = "")
public ReJson CheckSign(string id)
{
return new ReJson("验签成功!");
}
//POST验证
[HttpPost]
[CheckFilter]
public ReJson ChekSignWidhPost(int id)
{
return new ReJson("验证通过!");
}
#endregion
//#region 测试出错