1修改仓库类型命名 2接口获取店铺类目提审限额
This commit is contained in:
1 parent
bd72ff2766
commit
9947182f98
4 files changed
+67
-16
No files matched your search
@@ -1450,6 +1450,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
if (result.Contains("今日提审次数已用尽,请明日再试") || result.Contains("如需上架请先缴纳足额保证金") || result.Contains("在架商品数已达到上限") ||
|
||||
result.Contains("提审次数已达上限") || result.Contains("拥金上货失败:需要开通优选联盟") || result.Contains("本店铺近期提审失败比例较高,已被限"))
|
||||
{
|
||||
//已达今日上限
|
||||
shop.upLimitRetryCount++;
|
||||
if (shop.upLimitRetryCount >= globalShopUploadCntLimitRetryTimes)
|
||||
{
|
||||
@@ -3250,6 +3251,20 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
|
||||
#endregion
|
||||
|
||||
#region 检测是否有提审额度
|
||||
var urlAuditQuota = BaseClass.BuildWXImgObjString("product/wx_api_get_audit_quota");
|
||||
var checkData = UserLogin.GetSignaturex();
|
||||
checkData += "&token=" + token.accessToken;
|
||||
//checkData += "&post_data=" + GetHtml.UrlEncodeUtf8("{\"cat_id\":\"" + leafCatId + "\"}");
|
||||
checkData += "&post_data=" + GetHtml.UrlEncodeUtf8("{\"cat_id\":" + leafCatId + "}");
|
||||
var apiRst = GetHtml.PostUtf8(urlAuditQuota, checkData);
|
||||
var avail_quota = BaseRegex.GetIntJson(ref apiRst, "avail_quota");
|
||||
if (avail_quota > 0 == false)
|
||||
{
|
||||
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"当前类目店铺提审次数已达上限,请等待明日提审次数重置\"}";
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ai短标题 // ai获取短标题
|
||||
if (wxUploadRule.IsAiShortTitle || chkAiImage.Checked)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user