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