20210706
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Web.Http;
|
||||
using BLL;
|
||||
using WebAPI.Filter;
|
||||
|
||||
namespace WebAPI.Controllers
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class getController : ApiController
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取凭证
|
||||
/// </summary>
|
||||
/// <param name="projectId"></param>
|
||||
/// <param name="appId"></param>
|
||||
/// <param name="appSecret"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public object token(string projectId, string appId, string appSecret)
|
||||
{
|
||||
return new
|
||||
{
|
||||
code = 0,
|
||||
data = new { token = Const.sysglyId },
|
||||
tokenExpires = Funs.ConvertDateTimeToInt32(DateTime.Now.AddMonths(1)),
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user