|
|
@ -459,12 +459,15 @@ namespace BBWY.Server.Business |
|
|
|
|
|
|
|
|
|
|
|
PopOrderNotPayOrderByIdResponse response = jdClient.Execute(req, searchOrderRequest.AppToken, DateTime.Now.ToLocalTime()); |
|
|
|
logger.Info(response); |
|
|
|
|
|
|
|
if (response.IsError) |
|
|
|
throw new Exception($"获取未付款订单失败,{(string.IsNullOrEmpty(response.ErrorMsg) ? response.ErrMsg : response.ErrorMsg)}"); |
|
|
|
if (response.Json == null) |
|
|
|
response.Json = JsonConvert.DeserializeObject<JObject>(response.Body); |
|
|
|
if (response.Json["jingdong_pop_order_notPayOrderById_response"] == null || response.Json["jingdong_pop_order_notPayOrderById_response"]["orderDataNotPayInfo"] == null) |
|
|
|
throw new Exception($"未查询到未付款订单"); |
|
|
|
|
|
|
|
return response.Json; |
|
|
|
} |
|
|
|
} |
|
|
|