Browse Source

Merge branch 'master' of http://code.qiyue666.com/pengcong001/bbwy

AddValidOverTime
506583276@qq.com 2 years ago
parent
commit
71ad90ade0
  1. 15
      BBWY.Server.Business/PlatformSDK/JDBusiness.cs

15
BBWY.Server.Business/PlatformSDK/JDBusiness.cs

@ -1483,6 +1483,13 @@ namespace BBWY.Server.Business
var req = new EclpPoQueryPoOrderRequest();
req.poOrderNo = request.PoOrderNo;
var res = jdClient.Execute(req, request.AppToken, DateTime.Now.ToLocalTime());
if (!string.IsNullOrEmpty(res.ErrorMsg) || !string.IsNullOrEmpty(res.ErrMsg))
{
var errormsg = !string.IsNullOrEmpty(res.ErrMsg) ? res.ErrMsg : res.ErrorMsg;
if (errormsg.Contains("非法用户"))
errormsg = $"{errormsg}\r\n请联系京东物流负责人,开通对应事业部ISV的授权操作";
throw new BusinessException(errormsg);
}
if (res.Json == null)
res.Json = JObject.Parse(res.Body);
return res.Json;
@ -1508,7 +1515,13 @@ namespace BBWY.Server.Business
if (res.Json == null)
res.Json = JObject.Parse(res.Body);
if (!string.IsNullOrEmpty(res.ErrorMsg) || !string.IsNullOrEmpty(res.ErrMsg))
throw new BusinessException(!string.IsNullOrEmpty(res.ErrMsg) ? res.ErrMsg : res.ErrorMsg);
{
var errormsg = !string.IsNullOrEmpty(res.ErrMsg) ? res.ErrMsg : res.ErrorMsg;
if (errormsg.Contains("非法用户"))
errormsg = $"{errormsg}\r\n请联系京东物流负责人,开通对应事业部ISV的授权操作";
throw new BusinessException(errormsg);
}
return res.Json["jingdong_eclp_po_queryPoOrder_responce"]["queryPoModelList"].Children().Select(x => new JDInStoreOrderDetail()
{
deptNo = x.Value<string>("deptNo"),

Loading…
Cancel
Save