check bugs

This commit is contained in:
yubaolee
2018-03-26 14:11:07 +08:00
parent 304e465b6b
commit e00de72ffc
13 changed files with 134 additions and 59 deletions

View File

@@ -5,6 +5,7 @@ using Infrastructure;
using Newtonsoft.Json.Linq;
using OpenAuth.App;
using OpenAuth.App.Request;
using OpenAuth.App.Response;
using OpenAuth.Mvc.Models;
using OpenAuth.Repository.Domain;
@@ -51,7 +52,12 @@ namespace OpenAuth.Mvc.Controllers
{
try
{
var result = new Response<FlowInstance> { Result = App.Get(id) };
var flowinstance = App.Get(id);
var result = new Response<FlowVerificationResp>
{
Result = flowinstance.MapTo<FlowVerificationResp>()
};
return JsonHelper.Instance.Serialize(result);
}
catch (Exception ex)