Browse Source

查询供应商返回真实错误

AddValidOverTime
shanji 2 years ago
parent
commit
8da41acfb7
  1. 2
      BBWY.Server.Business/PlatformSDK/JDBusiness.cs

2
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;

Loading…
Cancel
Save