商品上传 增加 店铺勾选记录,保持上次上货时选中店铺
This commit is contained in:
1 parent
628e2d3786
commit
14a26b7509
1 file changed
+21
-6
@@ -669,6 +669,13 @@ namespace TemuKJD.WXForms.ProductForms
|
|||||||
if (!isInit)
|
if (!isInit)
|
||||||
{
|
{
|
||||||
InitWaitingProductConfigBinding();
|
InitWaitingProductConfigBinding();
|
||||||
|
foreach (var item in dgvShop.Rows.Cast<DataGridViewRow>())
|
||||||
|
{
|
||||||
|
var shopId = item.Cells["colShopId"]?.Value.ToString();
|
||||||
|
|
||||||
|
item.Cells["colSelect"].Value = wxUploadRule.SelectedShopIds.Contains(shopId);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
isInit = true;
|
isInit = true;
|
||||||
}
|
}
|
||||||
@@ -1025,6 +1032,10 @@ namespace TemuKJD.WXForms.ProductForms
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxUploadRule.SelectedShopIds = shopIdLst;
|
||||||
|
NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_upload_rule", wxUploadRule);
|
||||||
|
|
||||||
|
|
||||||
if (lstTemuDBProductSelect.Count() > 0)
|
if (lstTemuDBProductSelect.Count() > 0)
|
||||||
{
|
{
|
||||||
if (WXShopLoginForm.shopLoginInstance != null && WXShopLoginForm.shopLoginInstance.IsDisposed != true)
|
if (WXShopLoginForm.shopLoginInstance != null && WXShopLoginForm.shopLoginInstance.IsDisposed != true)
|
||||||
@@ -1369,8 +1380,8 @@ namespace TemuKJD.WXForms.ProductForms
|
|||||||
if (shopRow != null)
|
if (shopRow != null)
|
||||||
Invoke(new Action(() => { shopRow.Cells["colSelect"].Value = false; }));
|
Invoke(new Action(() => { shopRow.Cells["colSelect"].Value = false; }));
|
||||||
|
|
||||||
result = "{\"success\":false,\"status\":\"未上传\",\"errMsg\":\"超过设定的店铺最大在售商品数,设定:" +
|
result = "{\"success\":false,\"status\":\"未上传\",\"errMsg\":\"超过设定的店铺最大在售商品数,设定:" +
|
||||||
wxUploadRule.NotUploadShopProdMoreThan + " 已上架:" + totalNum + "\"}";
|
wxUploadRule.NotUploadShopProdMoreThan + " 已上架:" + totalNum + "\"}";
|
||||||
goto endUploadProduct;
|
goto endUploadProduct;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3042,7 +3053,7 @@ namespace TemuKJD.WXForms.ProductForms
|
|||||||
PDDDBProdListForm.GetProdWxCat(dbProd, null, shop);
|
PDDDBProdListForm.GetProdWxCat(dbProd, null, shop);
|
||||||
isRetryCat = true;
|
isRetryCat = true;
|
||||||
goto retryCat;
|
goto retryCat;
|
||||||
}
|
}
|
||||||
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"获取类目保证金失败\"}";
|
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"获取类目保证金失败\"}";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -6238,7 +6249,7 @@ namespace TemuKJD.WXForms.ProductForms
|
|||||||
//优选靓键店 登录 进店 397652670 重庆川味百年传奇山椒笋尖低脂解馋泡椒脆笋脆嫩爽口开胃解腻追剧办公解馋休闲小零食独立小包装 547009 371857150 0 初始化图片上传失败 值不能为 null。
|
//优选靓键店 登录 进店 397652670 重庆川味百年传奇山椒笋尖低脂解馋泡椒脆笋脆嫩爽口开胃解腻追剧办公解馋休闲小零食独立小包装 547009 371857150 0 初始化图片上传失败 值不能为 null。
|
||||||
//参数名: source https://wst.wxapp.tc.qq.com/161/20304/snscosdownload/SH/reserved/6acd9a520004f3272b49791884351f15000000a100004f50 14秒
|
//参数名: source https://wst.wxapp.tc.qq.com/161/20304/snscosdownload/SH/reserved/6acd9a520004f3272b49791884351f15000000a100004f50 14秒
|
||||||
if (!img_url.Contains("wxapp") && !img_url.Contains("mmecimage.cn"))
|
if (!img_url.Contains("wxapp") && !img_url.Contains("mmecimage.cn"))
|
||||||
img_url = img_url.Replace("https://", "http://");
|
img_url = img_url.Replace("https://", "http://");
|
||||||
var image = GetHtml.GetUrlImg(img_url, out getImgError);
|
var image = GetHtml.GetUrlImg(img_url, out getImgError);
|
||||||
if (image == null)
|
if (image == null)
|
||||||
image = new Bitmap(800, 800);
|
image = new Bitmap(800, 800);
|
||||||
@@ -7541,7 +7552,7 @@ namespace TemuKJD.WXForms.ProductForms
|
|||||||
globalShopUploadCntLimitRetryTimes = numJumpCnt.Value.ParseToInt();
|
globalShopUploadCntLimitRetryTimes = numJumpCnt.Value.ParseToInt();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void SaveImageCacheOld(string spuId, Dictionary<string, string> wxImgMapOldDic)
|
void SaveImageCacheOld(string spuId, Dictionary<string, string> wxImgMapOldDic)
|
||||||
{
|
{
|
||||||
@@ -8092,9 +8103,13 @@ Content-Type: application/octet-stream
|
|||||||
|
|
||||||
public bool IsNotUploadShopProdMoreThan { get; set; } = false;
|
public bool IsNotUploadShopProdMoreThan { get; set; } = false;
|
||||||
public int NotUploadShopProdMoreThan { get; set; } = 500;
|
public int NotUploadShopProdMoreThan { get; set; } = 500;
|
||||||
|
/// <summary>
|
||||||
|
/// 选中上传的商铺
|
||||||
|
/// </summary>
|
||||||
|
public List<string> SelectedShopIds { get; set; } = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class WaitingProductConfig : BindableBase
|
class WaitingProductConfig : BindableBase
|
||||||
{
|
{
|
||||||
public WaitingProductConfig()
|
public WaitingProductConfig()
|
||||||
|
|||||||
Reference in new issue
Block a user