Browse Source

如果缺少品牌名称 不设置完整标题

AddValidOverTime
sanji 2 years ago
parent
commit
2484313e6b
  1. 4
      BBWY.Server.Business/PlatformSDK/JDBusiness.cs

4
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<string>("brandName");
brandName = res.Json["jingdong_ware_read_findWareById_responce"]["ware"].Value<string>("brandName");
}
#endregion

Loading…
Cancel
Save