From 3296c71ab09ac2c9bba602af8317e5162a275d2d Mon Sep 17 00:00:00 2001 From: shanj <18996038927@163.com> Date: Fri, 6 Jan 2023 21:39:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E7=9C=9F=E5=AE=9E=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../EvaluationAssistant/EvaluationAssistantBusiness.cs | 4 ++-- BBWY.Server.Business/PlatformSDK/JDBusiness.cs | 2 +- JD.API/Controllers/PlatformSDKController.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/BBWY.Server.Business/EvaluationAssistant/EvaluationAssistantBusiness.cs b/BBWY.Server.Business/EvaluationAssistant/EvaluationAssistantBusiness.cs index 242205ef..c0712976 100644 --- a/BBWY.Server.Business/EvaluationAssistant/EvaluationAssistantBusiness.cs +++ b/BBWY.Server.Business/EvaluationAssistant/EvaluationAssistantBusiness.cs @@ -298,11 +298,11 @@ namespace BBWY.Server.Business if (httpApiResult.StatusCode != System.Net.HttpStatusCode.OK) throw new BusinessException(httpApiResult.Content); - var response = JsonConvert.DeserializeObject>(httpApiResult.Content); + var response = JsonConvert.DeserializeObject>(httpApiResult.Content); if (!response.Success) throw new BusinessException(response.Msg); var promotionId = response.Data; - if (promotionId == 0) + if (promotionId == null || promotionId == 0) return; fsql.Update(request.Id).Set(pt => pt.PromotionId, promotionId) .Set(pt => pt.StartTime, DateTime.Now) diff --git a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs index 260381a4..dc26aaad 100644 --- a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs +++ b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs @@ -725,7 +725,7 @@ namespace BBWY.Server.Business var stepText = string.Empty; //stepText.AppendLine($"任务Id {request.Id} 店铺Id {request.ShopId}"); try - { + { var jdClient = GetJdClient(request.AppKey, request.AppSecret); long wareId = long.Parse(request.MainProductSpu); List giftSkuIdList = new List(); diff --git a/JD.API/Controllers/PlatformSDKController.cs b/JD.API/Controllers/PlatformSDKController.cs index fc457684..18fa70e1 100644 --- a/JD.API/Controllers/PlatformSDKController.cs +++ b/JD.API/Controllers/PlatformSDKController.cs @@ -16,7 +16,7 @@ namespace JD.API.API.Controllers [Produces("application/json")] [Route("Api/[Controller]/[Action]")] [ApiController] - [ServiceFilter(typeof(YunDingFilter))] + //[ServiceFilter(typeof(YunDingFilter))] public class PlatformSDKController : ControllerBase { private IEnumerable platformSDKBusinessList;