diff --git a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs index ff43d3d6..73a69859 100644 --- a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs +++ b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs @@ -1484,7 +1484,12 @@ namespace BBWY.Server.Business req.poOrderNo = request.PoOrderNo; var res = jdClient.Execute(req, request.AppToken, DateTime.Now.ToLocalTime()); 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); + } if (res.Json == null) res.Json = JObject.Parse(res.Body); return res.Json; @@ -1510,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("deptNo"),