2 changed files with 31 additions and 9 deletions
@ -1,18 +1,27 @@ |
|||||
using System; |
|
||||
|
using QZWebApi.Bus; |
||||
|
using System; |
||||
using System.Collections.Generic; |
using System.Collections.Generic; |
||||
using System.Linq; |
using System.Linq; |
||||
using System.Web; |
using System.Web; |
||||
using System.Web.Mvc; |
|
||||
|
using System.Web.Http; |
||||
|
|
||||
|
|
||||
namespace QZWebApi.Controllers |
namespace QZWebApi.Controllers |
||||
{ |
{ |
||||
public class HomeController : Controller |
|
||||
|
public class HomeController : ApiController |
||||
{ |
{ |
||||
public ActionResult Index() |
|
||||
|
[HttpPost] |
||||
|
public string GetDecryptTjxx(GetDecryptTjxxInputDto input) |
||||
{ |
{ |
||||
ViewBag.Title = "Home Page"; |
|
||||
|
|
||||
return View(); |
|
||||
|
string resultMsg = TjSignUtil.Decrypt(input.DecryptValue, input.AesKey); |
||||
|
return resultMsg; |
||||
} |
} |
||||
} |
} |
||||
|
|
||||
|
public class GetDecryptTjxxInputDto |
||||
|
{ |
||||
|
public string DecryptValue { get; set; } |
||||
|
|
||||
|
public string AesKey { get; set; } |
||||
|
} |
||||
} |
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue