上货遇到类目更新缓存失效的重新识别一次类目

This commit is contained in:
wule committed 2026-09-24 13:31:10 +08:00
1 parent 3696ee3b3e
commit 7b9d63d0c9
2 files changed
+13 -1

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@
<ErrorReportUrlHistory />
<FallbackCulture>zh-CN</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles>
<ActiveDebugProfile>Development</ActiveDebugProfile>
<ActiveDebugProfile>Production</ActiveDebugProfile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
@@ -2774,6 +2774,9 @@ namespace TemuKJD.WXForms.ProductForms
{
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"该商品类目信息不完整\"}";
}
bool isRetryCat = false;
retryCat:
// 微信商品使用类目缓存
if (!dbProd.wx_cat_leaf.IsNullOrZero())
{
@@ -2969,7 +2972,16 @@ namespace TemuKJD.WXForms.ProductForms
if (leafCatId == 547591)
bound = GlobalConfig.WxCatBoundList.FirstOrDefault(b => b.leaf_id == 7370);
if (bound == null)
{
if (!isRetryCat)
{
PDDDBProdListForm.GetProdWxCat(dbProd, null, shop);
isRetryCat = true;
goto retryCat;
}
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"获取类目保证金失败\"}";
}
var maxBount = txtFilterBoundMax.Text.Trim().ParseToInt();
var minBount = txtFilterBoundMin.Text.Trim().ParseToInt();
if (bound.cat_bound < minBount || bound.cat_bound > maxBount)