Browse Source

提示真实错误

qianyi
shanji 2 years ago
parent
commit
3296c71ab0
  1. 4
      BBWY.Server.Business/EvaluationAssistant/EvaluationAssistantBusiness.cs
  2. 2
      BBWY.Server.Business/PlatformSDK/JDBusiness.cs
  3. 2
      JD.API/Controllers/PlatformSDKController.cs

4
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<ApiResponse<long>>(httpApiResult.Content);
var response = JsonConvert.DeserializeObject<ApiResponse<long?>>(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<PromotionTask>(request.Id).Set(pt => pt.PromotionId, promotionId)
.Set(pt => pt.StartTime, DateTime.Now)

2
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<string> giftSkuIdList = new List<string>();

2
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<PlatformSDKBusiness> platformSDKBusinessList;

Loading…
Cancel
Save