From cb19b2f0f69c98dcd67817dbfec3134afa43c6dd Mon Sep 17 00:00:00 2001 From: shanj <18996038927@163.com> Date: Sun, 5 Feb 2023 15:30:07 +0800 Subject: [PATCH] 1 --- BBWY.Server.Business/PlatformSDK/JDBusiness.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs index 01dac4ea..5951063e 100644 --- a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs +++ b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs @@ -1017,7 +1017,12 @@ namespace BBWY.Server.Business if (res.Json == null) res.Json = JObject.Parse(res.Body); if (res.IsError) + { throw new BusinessException($"上架sku失败-{(string.IsNullOrEmpty(res.ErrorMsg) ? res.ErrMsg : res.ErrorMsg)}"); + + /*{"error_response":{"code":"501","en_desc":"com.jd.bk.saf.exception.SafJosException:京东价超出该类目允许范围:12.15-39437元!#821c1c3b382f476abeb21f1f515274c7(Solution reference: https://jos.jd.com/commondoc?listId=171)","zh_desc":"调用参数错误(解决方案参考: https://jos.jd.com/commondoc?listId=171)"}}*/ + } + var newSkuList = res.Json["jingdong_sku_write_updateSkus_responce"]["skuList"].ToList().Select(x => x.Value("skuId")).ToList(); giftSkuIdList.AddRange(newSkuList); }