37 lines
882 B
C#
37 lines
882 B
C#
|
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)),
|
|||
|
};
|
|||
|
}
|
|||
|
}
|
|||
|
}
|