diff --git a/BBWY.Server.API/Controllers/ServiceOrderSyncController.cs b/BBWY.Server.API/Controllers/ServiceOrderSyncController.cs index 1361075e..305609f0 100644 --- a/BBWY.Server.API/Controllers/ServiceOrderSyncController.cs +++ b/BBWY.Server.API/Controllers/ServiceOrderSyncController.cs @@ -1,4 +1,5 @@ using BBWY.Server.Business.Sync; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json.Linq; @@ -15,6 +16,7 @@ namespace BBWY.Server.API.Controllers this.jdServiceOrderSyncBusiness = jdServiceOrderSyncBusiness; } + [Consumes("application/x-www-form-urlencoded")] [HttpPost] public void ReceiveKuaiDi100Push([FromForm] string sign, [FromForm] string param) diff --git a/BBWY.Server.Business/Sync/OrderSyncBusiness.cs b/BBWY.Server.Business/Sync/OrderSyncBusiness.cs index abee76eb..c3b19cc4 100644 --- a/BBWY.Server.Business/Sync/OrderSyncBusiness.cs +++ b/BBWY.Server.Business/Sync/OrderSyncBusiness.cs @@ -882,7 +882,7 @@ namespace BBWY.Server.Business */ nLogManager.Default().Info($"订单推送-{JsonConvert.SerializeObject(request)}"); - if (request.erpOrderStatus != "5") + if (request.orderStatus != "5") return; var shop = venderBusiness.GetShopByVenderId(request.venderId); if (shop == null) diff --git a/BBWY.Server.Model/Dto/Request/Sync/OrderPublishRequest.cs b/BBWY.Server.Model/Dto/Request/Sync/OrderPublishRequest.cs index 170a8285..78a9dd01 100644 --- a/BBWY.Server.Model/Dto/Request/Sync/OrderPublishRequest.cs +++ b/BBWY.Server.Model/Dto/Request/Sync/OrderPublishRequest.cs @@ -2,7 +2,7 @@ { public class OrderPublishRequest { - public string erpOrderStatus { get; set; } + public string orderStatus { get; set; } public string orderId { get; set; }