From 8da41acfb76a069b340fac279467d85fcf2956d4 Mon Sep 17 00:00:00 2001 From: shanj <18996038927@163.com> Date: Tue, 8 Aug 2023 16:56:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E7=9C=9F=E5=AE=9E=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BBWY.Server.Business/PlatformSDK/JDBusiness.cs | 2 ++ 1 file changed, 2 insertions(+) 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;