修复微信店铺商品转换库存数缺失导致的错误问题

This commit is contained in:
wule committed 2026-06-15 01:27:18 +08:00
1 parent e80cf369c8
commit 34efa54cc9
3 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ namespace AllBase
/// <summary> /// <summary>
/// 版本ID /// 版本ID
/// </summary> /// </summary>
public static int VersionCount = 1186; public static int VersionCount = 1187;
public static string MainPath = "29wx"; public static string MainPath = "29wx";
//public static string MainPath = "29wx"; //public static string MainPath = "29wx";
//public static string MainPath = "29pdd"; //public static string MainPath = "29pdd";
+1 -1
View File
@@ -1500,7 +1500,7 @@ namespace TemuKJD.BLL
multi_price_in_yuan = null, multi_price_in_yuan = null,
price = wxEditSkuInfo.productSkuInfo.salePrice.ParseToInt() + 100, price = wxEditSkuInfo.productSkuInfo.salePrice.ParseToInt() + 100,
price_in_yuan = null, price_in_yuan = null,
quantity = wxEditSkuInfo.productSkuInfo.realStockInfo.stockNum, quantity = wxEditSkuInfo.productSkuInfo.realStockInfo?.stockNum ?? wxEditSkuInfo.productSkuInfo.stockInfo?.stockNum.ParseToInt(),
reserve_quantity = 0, reserve_quantity = 0,
weight = 0, weight = 0,
thumb_url = wxEditSkuInfo.productSkuInfo.thumbImg, thumb_url = wxEditSkuInfo.productSkuInfo.thumbImg,
@@ -1504,7 +1504,7 @@ namespace TemuKJD.WXForms.ProductForms
var error = BaseRegex.GetStringJson(ref searchRst, "msg"); var error = BaseRegex.GetStringJson(ref searchRst, "msg");
if (string.IsNullOrEmpty(error)) if (string.IsNullOrEmpty(error))
error = searchRst; error = searchRst;
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"商品查询错误 " + error + "\"}"; return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"已存在商品查询错误 " + error + "\"}";
} }
try try
{ {
@@ -1516,7 +1516,7 @@ namespace TemuKJD.WXForms.ProductForms
} }
catch (Exception ex) catch (Exception ex)
{ {
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"商品查询错误 " + ex.Message + "\"}"; return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"已存在商品查询错误 " + ex.Message + "\"}";
} }
} }
// 非裂变商品按商品Id // 非裂变商品按商品Id
@@ -1536,7 +1536,7 @@ namespace TemuKJD.WXForms.ProductForms
var error = BaseRegex.GetStringJson(ref searchRst, "msg"); var error = BaseRegex.GetStringJson(ref searchRst, "msg");
if (string.IsNullOrEmpty(error)) if (string.IsNullOrEmpty(error))
error = searchRst; error = searchRst;
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"商品查询错误 " + error + "\"}"; return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"已存在商品查询错误 " + error + "\"}";
} }
try try
{ {
@@ -1548,7 +1548,7 @@ namespace TemuKJD.WXForms.ProductForms
} }
catch (Exception ex) catch (Exception ex)
{ {
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"商品查询错误 " + ex.Message + "\"}"; return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"已存在商品查询错误 " + ex.Message + "\"}";
} }
} }
} }