Browse Source

修改订单管家推送字段

qianyi
shanji 2 years ago
parent
commit
ead6090734
  1. 2
      BBWY.Server.API/Controllers/ServiceOrderSyncController.cs
  2. 2
      BBWY.Server.Business/Sync/OrderSyncBusiness.cs
  3. 2
      BBWY.Server.Model/Dto/Request/Sync/OrderPublishRequest.cs

2
BBWY.Server.API/Controllers/ServiceOrderSyncController.cs

@ -1,4 +1,5 @@
using BBWY.Server.Business.Sync; using BBWY.Server.Business.Sync;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
@ -15,6 +16,7 @@ namespace BBWY.Server.API.Controllers
this.jdServiceOrderSyncBusiness = jdServiceOrderSyncBusiness; this.jdServiceOrderSyncBusiness = jdServiceOrderSyncBusiness;
} }
[Consumes("application/x-www-form-urlencoded")] [Consumes("application/x-www-form-urlencoded")]
[HttpPost] [HttpPost]
public void ReceiveKuaiDi100Push([FromForm] string sign, [FromForm] string param) public void ReceiveKuaiDi100Push([FromForm] string sign, [FromForm] string param)

2
BBWY.Server.Business/Sync/OrderSyncBusiness.cs

@ -882,7 +882,7 @@ namespace BBWY.Server.Business
*/ */
nLogManager.Default().Info($"订单推送-{JsonConvert.SerializeObject(request)}"); nLogManager.Default().Info($"订单推送-{JsonConvert.SerializeObject(request)}");
if (request.erpOrderStatus != "5") if (request.orderStatus != "5")
return; return;
var shop = venderBusiness.GetShopByVenderId(request.venderId); var shop = venderBusiness.GetShopByVenderId(request.venderId);
if (shop == null) if (shop == null)

2
BBWY.Server.Model/Dto/Request/Sync/OrderPublishRequest.cs

@ -2,7 +2,7 @@
{ {
public class OrderPublishRequest public class OrderPublishRequest
{ {
public string erpOrderStatus { get; set; } public string orderStatus { get; set; }
public string orderId { get; set; } public string orderId { get; set; }

Loading…
Cancel
Save