From 2484313e6b152b51c8028c66c337b3933129e77f Mon Sep 17 00:00:00 2001 From: sanji Date: Sun, 29 Oct 2023 12:17:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A6=82=E6=9E=9C=E7=BC=BA=E5=B0=91=E5=93=81?= =?UTF-8?q?=E7=89=8C=E5=90=8D=E7=A7=B0=20=E4=B8=8D=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=AE=8C=E6=95=B4=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BBWY.Server.Business/PlatformSDK/JDBusiness.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs index 67f8fb31..ea264615 100644 --- a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs +++ b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs @@ -787,6 +787,8 @@ namespace BBWY.Server.Business #region 设置完整标题 { + if (string.IsNullOrEmpty(brandName)) + return; var req = new WareWriteUpdateWareTitleRequest(); req.wareId = long.Parse(mainProductSpu); if (!fullTitle.StartsWith(brandName)) @@ -937,7 +939,7 @@ namespace BBWY.Server.Business throw new BusinessException($"获取主商品品牌失败-{(string.IsNullOrEmpty(res.ErrorMsg) ? res.ErrMsg : res.ErrorMsg)}"); if (res.Json == null) res.Json = JObject.Parse(res.Body); - brandName = res.Json["jingdong_ware_read_findWareById_responce"]["ware"].Value("brandName"); + brandName = res.Json["jingdong_ware_read_findWareById_responce"]["ware"].Value("brandName"); } #endregion