|
|
@@ -1,6 +1,8 @@ |
|
|
|
using BPA.KitChen.GroupMealOrder.Application.BaseDto; |
|
|
|
using BPA.KitChen.GroupMealOrder.Application.Service.AExternalPlatform.Service.CheckService.Services; |
|
|
|
using BPA.KitChen.GroupMealOrder.Core; |
|
|
|
using BPA.KitChen.GroupMealOrder.Core.Entity; |
|
|
|
using BPA.KitChen.GroupMealOrder.SqlSugar; |
|
|
|
using Microsoft.AspNetCore.Mvc.Controllers; |
|
|
|
using Microsoft.AspNetCore.Mvc.Filters; |
|
|
|
using Newtonsoft.Json; |
|
|
@@ -84,25 +86,25 @@ namespace BPA.KitChen.GroupMealOrder.Handlers |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
////记录日志 |
|
|
|
//await SqlSugarDb.Db.Insertable(new BPA_ThirdpartyRequestLog() |
|
|
|
//{ |
|
|
|
// Id = CurrentUser.MessageId, |
|
|
|
// CreateBy = DateTime.Now.ToString(), |
|
|
|
// GroupId = CurrentUser.GroupId, |
|
|
|
// RequestUrl = requestUrl, |
|
|
|
// ReauestMethod = httpRequest.Method, |
|
|
|
// ReauestParm = JsonConvert.SerializeObject(parameters), |
|
|
|
// ResultParm = !isRequestSucceed ? actionContext.Exception.ToString() : JsonConvert.SerializeObject(returnResult), |
|
|
|
// IP = remoteIPv4 |
|
|
|
//}).ExecuteCommandAsync(); |
|
|
|
//记录日志 |
|
|
|
await SqlSugarDb.DbLog.Insertable(new BPA_ThirdpartyRequestLog() |
|
|
|
{ |
|
|
|
Id = CurrentUser.MessageId, |
|
|
|
CreateAt = DateTime.Now, |
|
|
|
GroupId = CurrentUser.TenantId, |
|
|
|
RequestUrl = requestUrl, |
|
|
|
ReauestMethod = httpRequest.Method, |
|
|
|
ReauestParm = JsonConvert.SerializeObject(parameters), |
|
|
|
ResultParm = !isRequestSucceed ? actionContext.Exception.ToString() : JsonConvert.SerializeObject(returnResult), |
|
|
|
IP = remoteIPv4 |
|
|
|
}).ExecuteCommandAsync(); |
|
|
|
|
|
|
|
////记录下发记录 |
|
|
|
//if (isRequestSucceed) |
|
|
|
//{ |
|
|
|
// foreach (var parameter in parameters) |
|
|
|
// { |
|
|
|
|
|
|
|
|
|
|
|
// var isPush = DtoValidator.GetAttributePrice(parameter.Value, "isPush"); |
|
|
|
// var callbackUrl = DtoValidator.GetAttributePrice(parameter.Value, "callbackUrl"); |
|
|
|
// var storeIdList = DtoValidator.GetAttributePrice(parameter.Value, "storeIdList"); |
|
|
@@ -134,7 +136,7 @@ namespace BPA.KitChen.GroupMealOrder.Handlers |
|
|
|
// break; |
|
|
|
// } |
|
|
|
//} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
catch (Exception e) |
|
|
|