上货遇到类目更新缓存失效的重新识别一次类目
This commit is contained in:
1 parent
3696ee3b3e
commit
7b9d63d0c9
2 files changed
+13
-1
No files matched your search
@@ -10,7 +10,7 @@
|
|||||||
<ErrorReportUrlHistory />
|
<ErrorReportUrlHistory />
|
||||||
<FallbackCulture>zh-CN</FallbackCulture>
|
<FallbackCulture>zh-CN</FallbackCulture>
|
||||||
<VerifyUploadedFiles>false</VerifyUploadedFiles>
|
<VerifyUploadedFiles>false</VerifyUploadedFiles>
|
||||||
<ActiveDebugProfile>Development</ActiveDebugProfile>
|
<ActiveDebugProfile>Production</ActiveDebugProfile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
||||||
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
||||||
|
|||||||
@@ -2774,6 +2774,9 @@ namespace TemuKJD.WXForms.ProductForms
|
|||||||
{
|
{
|
||||||
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"该商品类目信息不完整\"}";
|
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"该商品类目信息不完整\"}";
|
||||||
}
|
}
|
||||||
|
bool isRetryCat = false;
|
||||||
|
retryCat:
|
||||||
|
|
||||||
// 微信商品使用类目缓存
|
// 微信商品使用类目缓存
|
||||||
if (!dbProd.wx_cat_leaf.IsNullOrZero())
|
if (!dbProd.wx_cat_leaf.IsNullOrZero())
|
||||||
{
|
{
|
||||||
@@ -2969,7 +2972,16 @@ namespace TemuKJD.WXForms.ProductForms
|
|||||||
if (leafCatId == 547591)
|
if (leafCatId == 547591)
|
||||||
bound = GlobalConfig.WxCatBoundList.FirstOrDefault(b => b.leaf_id == 7370);
|
bound = GlobalConfig.WxCatBoundList.FirstOrDefault(b => b.leaf_id == 7370);
|
||||||
if (bound == null)
|
if (bound == null)
|
||||||
|
{
|
||||||
|
if (!isRetryCat)
|
||||||
|
{
|
||||||
|
PDDDBProdListForm.GetProdWxCat(dbProd, null, shop);
|
||||||
|
isRetryCat = true;
|
||||||
|
goto retryCat;
|
||||||
|
}
|
||||||
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"获取类目保证金失败\"}";
|
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"获取类目保证金失败\"}";
|
||||||
|
}
|
||||||
|
|
||||||
var maxBount = txtFilterBoundMax.Text.Trim().ParseToInt();
|
var maxBount = txtFilterBoundMax.Text.Trim().ParseToInt();
|
||||||
var minBount = txtFilterBoundMin.Text.Trim().ParseToInt();
|
var minBount = txtFilterBoundMin.Text.Trim().ParseToInt();
|
||||||
if (bound.cat_bound < minBount || bound.cat_bound > maxBount)
|
if (bound.cat_bound < minBount || bound.cat_bound > maxBount)
|
||||||
|
|||||||
Reference in new issue
Block a user