diff --git a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs index 5fe28c16..ff43d3d6 100644 --- a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs +++ b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs @@ -1483,6 +1483,8 @@ 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)) + throw new BusinessException(!string.IsNullOrEmpty(res.ErrMsg) ? res.ErrMsg : res.ErrorMsg); if (res.Json == null) res.Json = JObject.Parse(res.Body); return res.Json;