聚水潭sku入库

This commit is contained in:
wule committed 2026-03-10 13:52:42 +08:00
1 parent 2d35f4b861
commit ccde645d98
17 files changed
+3090 -209

No files matched your search

@@ -49,6 +49,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PDDDBProdListForm));
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.dtpEnd = new System.Windows.Forms.DateTimePicker();
this.dtpStart = new System.Windows.Forms.DateTimePicker();
this.ucCheckBox1 = new TemuKJD.UserComponent.UcCheckBox(this.components);
this.btnUpdateReturnServerData = new DevComponents.DotNetBar.PanelEx();
this.btnReturnSecretData = new DevComponents.DotNetBar.PanelEx();
this.btnStopStop = new DevComponents.DotNetBar.PanelEx();
@@ -184,6 +187,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.dtpEnd);
this.splitContainer1.Panel1.Controls.Add(this.dtpStart);
this.splitContainer1.Panel1.Controls.Add(this.ucCheckBox1);
this.splitContainer1.Panel1.Controls.Add(this.btnUpdateReturnServerData);
this.splitContainer1.Panel1.Controls.Add(this.btnReturnSecretData);
this.splitContainer1.Panel1.Controls.Add(this.btnStopStop);
@@ -214,6 +220,36 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.splitContainer1.SplitterDistance = 110;
this.splitContainer1.TabIndex = 1;
//
// dtpEnd
//
this.dtpEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.dtpEnd.Location = new System.Drawing.Point(1042, 80);
this.dtpEnd.Name = "dtpEnd";
this.dtpEnd.Size = new System.Drawing.Size(110, 23);
this.dtpEnd.TabIndex = 979;
this.dtpEnd.Visible = false;
//
// dtpStart
//
this.dtpStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.dtpStart.Location = new System.Drawing.Point(926, 80);
this.dtpStart.Name = "dtpStart";
this.dtpStart.Size = new System.Drawing.Size(110, 23);
this.dtpStart.TabIndex = 978;
this.dtpStart.Visible = false;
//
// ucCheckBox1
//
this.ucCheckBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.ucCheckBox1.AutoSize = true;
this.ucCheckBox1.Location = new System.Drawing.Point(856, 82);
this.ucCheckBox1.Name = "ucCheckBox1";
this.ucCheckBox1.Size = new System.Drawing.Size(75, 21);
this.ucCheckBox1.TabIndex = 977;
this.ucCheckBox1.Text = "时间范围";
this.ucCheckBox1.UseVisualStyleBackColor = true;
this.ucCheckBox1.Visible = false;
//
// btnUpdateReturnServerData
//
this.btnUpdateReturnServerData.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -237,6 +273,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.btnUpdateReturnServerData.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnUpdateReturnServerData.TabIndex = 943;
this.btnUpdateReturnServerData.Text = "数据拉回";
this.btnUpdateReturnServerData.Visible = false;
this.btnUpdateReturnServerData.Click += new System.EventHandler(this.updateReturnServerData_Click);
//
// btnReturnSecretData
@@ -262,6 +299,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.btnReturnSecretData.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnReturnSecretData.TabIndex = 909;
this.btnReturnSecretData.Text = "加密数据回传";
this.btnReturnSecretData.Visible = false;
this.btnReturnSecretData.Click += new System.EventHandler(this.btnReturnSecretData_Click);
//
// btnStopStop
@@ -373,7 +411,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"安全商品",
"违规商品",
"未校验"});
this.cmbSetWxSafe.Location = new System.Drawing.Point(865, 57);
this.cmbSetWxSafe.Location = new System.Drawing.Point(865, 41);
this.cmbSetWxSafe.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
this.cmbSetWxSafe.Name = "cmbSetWxSafe";
this.cmbSetWxSafe.Size = new System.Drawing.Size(85, 25);
@@ -386,7 +424,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.btnSetWxSafe.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSetWxSafe.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSetWxSafe.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSetWxSafe.Location = new System.Drawing.Point(952, 57);
this.btnSetWxSafe.Location = new System.Drawing.Point(952, 41);
this.btnSetWxSafe.Name = "btnSetWxSafe";
this.btnSetWxSafe.Size = new System.Drawing.Size(84, 25);
this.btnSetWxSafe.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -411,7 +449,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.btnImport.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnImport.DisabledBackColor = System.Drawing.Color.Empty;
this.btnImport.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnImport.Location = new System.Drawing.Point(1058, 57);
this.btnImport.Location = new System.Drawing.Point(1058, 41);
this.btnImport.Name = "btnImport";
this.btnImport.Size = new System.Drawing.Size(84, 25);
this.btnImport.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -1042,7 +1080,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.btnDelSelect.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnDelSelect.DisabledBackColor = System.Drawing.Color.Empty;
this.btnDelSelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnDelSelect.Location = new System.Drawing.Point(1058, 23);
this.btnDelSelect.Location = new System.Drawing.Point(1058, 7);
this.btnDelSelect.Name = "btnDelSelect";
this.btnDelSelect.Size = new System.Drawing.Size(84, 25);
this.btnDelSelect.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -1064,7 +1102,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//
this.cmbGroup.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.cmbGroup.FormattingEnabled = true;
this.cmbGroup.Location = new System.Drawing.Point(865, 23);
this.cmbGroup.Location = new System.Drawing.Point(865, 7);
this.cmbGroup.Name = "cmbGroup";
this.cmbGroup.Size = new System.Drawing.Size(85, 25);
this.cmbGroup.TabIndex = 640;
@@ -1076,7 +1114,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.btnSetGroup.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnSetGroup.DisabledBackColor = System.Drawing.Color.Empty;
this.btnSetGroup.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSetGroup.Location = new System.Drawing.Point(952, 23);
this.btnSetGroup.Location = new System.Drawing.Point(952, 7);
this.btnSetGroup.Name = "btnSetGroup";
this.btnSetGroup.Size = new System.Drawing.Size(84, 25);
this.btnSetGroup.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -1851,5 +1889,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
private System.Windows.Forms.ComboBox cmbHasReturn;
private System.Windows.Forms.Label label18;
private DevComponents.DotNetBar.PanelEx btnUpdateReturnServerData;
private UserComponent.UcCheckBox ucCheckBox1;
private System.Windows.Forms.DateTimePicker dtpEnd;
private System.Windows.Forms.DateTimePicker dtpStart;
}
}
@@ -1,5 +1,6 @@
using AllBase;
using AllBase.Helper;
using AllBase.Model.Param;
using AllBase.Model.Result;
using AllBase.Model.Result.PDDResult;
using AllBase.Model.Result.WXResult;
@@ -96,6 +97,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
if (BaseClass.MainPath != "binxixi")
{
//this.dgvDbProduct.Columns["col_edit"].Visible = false;
this.dgvDbProduct.Columns["colExtCodePrice"].Visible = false;
this.dgvDbProduct.Columns["colEdit"].Visible = false;
}
btnSelect.Visible = false;
@@ -116,6 +119,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.dgvDbProduct.AddMergeColumnHeader(new List<string>() { "colExtCodePrice", "colEdit" }, "货号价格");
this.dgvDbProduct.AddMergeColumn(new List<string>() { "colExtCodePrice", "colEdit" });
this.dtpStart.Value = new DateTime(2026, 3, 6, 16, 0, 0);
this.dtpEnd.Value = new DateTime(2026, 3, 7, 18, 0, 0);
}
private void btnSearch_Click(object sender, EventArgs e)
@@ -323,6 +329,12 @@ namespace TemuKJD.PDDForms.ProductSelectForms
"&wx_safe_status=" + cmbWxSafe.Text.Trim().Replace("安全+未校验", "安全商品,未校验") +
"&special_prod_type=" + cmbSpProdType.Text.Trim();
if (ucCheckBox1.Checked)
{
data += "&start_time=" + dtpStart.Value.ToString("yyyy-MM-dd HH:mm:ss");
data += "&end_time=" + dtpEnd.Value.ToString("yyyy-MM-dd HH:mm:ss");
}
if (cmbSourceType.Text != "厂商直采")
{
data += "&search_cat1=" + cmbCat1.Text.Trim();
@@ -1558,11 +1570,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
{
}
//Thread.Sleep(500);
// 查询微信接口token
//url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/shop/list?userName=阿杰账户";
//exportRst = WXHttpResponseBLL.e57PostResponse(url, "&warehouseNum=123456&shopId=46568955", "");
//exportRst = WXHttpResponseBLL.e57GetResponse(url, "");
}
}
@@ -1607,26 +1614,37 @@ namespace TemuKJD.PDDForms.ProductSelectForms
dbProdTmpLst.AddRange(dbProdLst);
while (dbProdTmpLst.Count > 0)
{
if (cancellationTokenSource.IsCancellationRequested)
break;
var takeCount = 20;
List<KJDDBProduct> dbProdTmp20Lst = dbProdTmpLst.Take(takeCount).ToList();
dbProdTmpLst.RemoveRange(0, dbProdTmp20Lst.Count);
if (cancellationTokenSource.IsCancellationRequested)
break;
Invoke(new Action(() =>
{
this.statusBar.UpdateProgressBar(this.statusBar.pgbTaskProgress.Value + dbProdTmp20Lst.Count);
this.statusBar.lblTaskStatus.Text = "正在拉回 " + this.statusBar.pgbTaskProgress.Value + "/" + dbProdLst.Count;
}));
// 旧的批量拉取
var spuCodes = string.Join("\",\"", dbProdTmp20Lst.Select(p => p.ext_code));
var spu_id = string.Join("\",\"", dbProdTmp20Lst.Select(p => p.spu_id));
// 原批量拉取,已废弃 "https://po.e57.cn/prod-api/api/sys-api/system/open/api/goods/list/get?page_size=10";
// 按spuCode(ext_code)拉取
string url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/goods/list/get?" + Randomx.GetId(100, 999);
string body = "{\"spuCodes\":[\"" + spuCodes + "\"]}";
//string body = "{\"warehouseGoodsIds\":[\"" + spu_id + "\"]}";
// 使用新的批量拉取
body = "{\"goodsApiNewItems\":[";
url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/goods/list/getNew";
foreach (var dbProd in dbProdTmp20Lst)
{
body += "{\"warehouseGoodsId\":\"" + dbProd.spu_id + "\",\"spuCode\":\"" + dbProd.ext_code + "\"},";
}
body = body.TrimEnd(',');
body += "]}";
var getRst = WXHttpResponseBLL.e57PostResponse(url, body, "");
Thread.Sleep(500);
if (getRst.Contains("\"code\":0"))
@@ -1676,71 +1694,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
}
}
//foreach (var prod in dbProdLst)
//{
// spuCodes
// if (dbProd.sku_secret_json.IsNullOrEmpty() || dbProd.sku_secret_json.Length < 10)
// {
// }
//}
//var dbProd = prod;
// // 导出成功,拉回然后提交导本地服务端标记导出成功
// if (dbProd.sku_secret_json.IsNullOrEmpty() || dbProd.sku_secret_json.Length < 10)
// {
// // 原批量拉取,已废弃 "https://po.e57.cn/prod-api/api/sys-api/system/open/api/goods/list/get?page_size=10";
// // 按spuCode(ext_code)拉取
// string url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/goods/list/get";
// string body = "{\"spuCodes\":[\"" + dbProd.ext_code + "\"]}";
// var getRst = WXHttpResponseBLL.e57PostResponse(url, body, "");
// Thread.Sleep(500);
// string skuSecretJson = JsonHelper.SerializeObject(JsonHelper.JObjectParse(getRst)["data"]);
// if (getRst.Contains("\"code\":0"))
// {
// try
// {
// var url2 = BaseClass.BuildPDDObjString("product/mdy_product");
// string skuSecretJson = JsonHelper.SerializeObject(JsonHelper.JObjectParse(getRst)["data"]);
// if (skuSecretJson.Contains("warehouseGoodsId") && skuSecretJson.Contains("goodsId") &&
// skuSecretJson.Contains("warehouseSkuId") && skuSecretJson.Contains("skuId"))
// {
// var data = Work.UserLogin.GetSignaturex() +
// "&spu_id=" + dbProd.spu_id +
// "&send_to_out_server=" + 1 +
// "&sku_secret_json=" + GetHtml.UrlEncodeUtf8(skuSecretJson);
// var html = GetHtml.PostUtf8(url2, data);
// if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
// html = GetHtml.PostUtf8(url2, data);
// if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
// {
// }
// else
// {
// prod.send_to_out_server = 1;
// }
// }
// else
// {
// }
// }
// catch
// {
// }
// }
// else
// {
// }
// }
//Thread.Sleep(500);
// 获取售后地址
//https://po.e57.cn/prod-api/api/sys-api/system/open/api/afterSale/info?warehouseNum=10361546&shopId=46568955
//var url2 = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/afterSale/info?warehouseNum=" + dbProd.skc_id; //+ "&userName=阿杰账户";
@@ -1751,6 +1704,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//var url3 = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/freightTemplate/list?warehouseNum=" + dbProd.skc_id;
//var exportRst3 = WXHttpResponseBLL.e57GetResponse(url3, "");
// 获取微信店铺接口token列表
//url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/shop/list?userName=阿杰账户";
//exportRst = WXHttpResponseBLL.e57PostResponse(url, "&warehouseNum=123456&shopId=46568955", "");
//exportRst = WXHttpResponseBLL.e57GetResponse(url, "");
@@ -1967,60 +1921,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
}
}
Thread.Sleep(100);
//// 导出成功,回写数据
//if (exportRst.Contains("\"code\":200"))
//{
// if (chkPullAfterPush.Checked)
// {
// url = "https://po.e57.cn/prod-api/api/oms-api/updateGoodsId";
// string body = dbProd.sku_secret_json.TrimStart('[').TrimEnd(']');
// var getRst = WXHttpResponseBLL.e57PostResponse(url, body, "");
// if (getRst.Contains("\"code\":0") || getRst.Contains("<code>200</code>"))
// {
// try
// {
// {
// //url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/goods/list/get";
// //string bodyx = "{\"spuCodes\":[\"" + dbProd.ext_code + "\"]}";
// //string bodyx = "{\"warehouseGoodsIds\":[\"" + dbProd.spu_id + "\"]}";
// //var getRstx = WXHttpResponseBLL.e57PostResponse(url, bodyx, "");
// }
// var url3 = BaseClass.BuildPDDObjString("product/mdy_product");
// var data3 = Work.UserLogin.GetSignaturex() +
// "&spu_id=" + dbProd.spu_id +
// "&standby3=" + 1;
// var html = GetHtml.PostUtf8(url3, data3);
// if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
// html = GetHtml.PostUtf8(url3, data3);
// if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
// {
// }
// else
// {
// prod.standby3 = "1";
// dbProd.standby3 = "1";
// }
// }
// catch
// {
// }
// }
// else
// {
// }
// }
//}
//else
//{
//}
Thread.Sleep(100);
// 查询微信接口token
//url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/shop/list?userName=阿杰账户";
//exportRst = WXHttpResponseBLL.e57PostResponse(url, "&warehouseNum=123456&shopId=46568955", "");
//exportRst = WXHttpResponseBLL.e57GetResponse(url, "");
}
}
@@ -2072,6 +1972,11 @@ namespace TemuKJD.PDDForms.ProductSelectForms
this.statusBar.lblTaskStatus.Text = "正在拉回回传 " + this.statusBar.pgbTaskProgress.Value + "/" + dbProdLst.Count + " 成功:" + dbProdLst.Where(p => p.standby3 == "1").Count();
}));
var dbProd = PDDDBProdEditForm.GetPddProductDetail(prod.id.ParseToString());
var rst = new WxProdFormConverter().JstPddConvertToWxOutServer(dbProd);
if (!rst.Contains("\"success\":true"))
{
continue;
}
// 如果加密数据为空数据就跳过
if (string.IsNullOrEmpty(dbProd?.sku_secret_json) && dbProd.sku_secret_json.Length > 10)
@@ -2084,7 +1989,16 @@ namespace TemuKJD.PDDForms.ProductSelectForms
//continue;
}
var rst = new WxProdFormConverter().JstPddConvertToWxOutServer(dbProd);
var outServerGoodsParamStr = new WxProdFormConverter().JstPddConvertToWxOutServer(dbProd);
OutServerGoodsParam outServerGoodsParam = null;
try
{
outServerGoodsParam = JsonHelper.DeserializeJsonToObject<OutServerGoodsParam>(JsonHelper.JObjectParse(outServerGoodsParamStr)["data"].ParseToString());
}
catch
{
continue;
}
if (!rst.Contains("\"success\":true"))
{
continue;
@@ -2118,10 +2032,13 @@ namespace TemuKJD.PDDForms.ProductSelectForms
try
{
{
url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/goods/list/get";
string bodyx = "{\"spuCodes\":[\"" + dbProd.ext_code + "\"]}";
//string bodyx = "{\"warehouseGoodsIds\":[\"" + dbProd.spu_id + "\"]}";
var getRstx = WXHttpResponseBLL.e57PostResponse(url, bodyx, "");
//url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/goods/list/get";
//string dataX = "{\"spuCodes\":[\"" + dbProd.ext_code + "\"]}";
//string dataX = "{\"warehouseGoodsIds\":[\"" + dbProd.spu_id + "\"]}";
url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/goods/list/getNew";
string dataX = "{\"goodsApiNewItems\":[{\"warehouseGoodsId\":\"" + dbProd.spu_id + "\",\"spuCode\":\"" + dbProd.ext_code + "\"}]}";
var getRstx = WXHttpResponseBLL.e57PostResponse(url, dataX, "");
if (!getRstx.Contains("\"code\":0"))
continue;
@@ -2142,16 +2059,48 @@ namespace TemuKJD.PDDForms.ProductSelectForms
if (bodyObj["warehouseGoodsId"].ParseToString() != bodyRstObj["warehouseGoodsId"].ParseToString() &&
bodyObj["spuCode"].ParseToString() != bodyRstObj["spuCode"].ParseToString())
success = false;
if (bodyObj["skus"].Any(b => !bodyRstObj["skus"].Any(br => br.ParseToString() == b.ParseToString())))
// 从商品采集数据里获取warehouseSkuId不为空的商品,作为比对数据
//var warehouseSkuIdTmpList = outServerGoodsParam.skus.Select(s => s.warehouseSkuId).ToList();
var warehouseSkuIdList = outServerGoodsParam.skus.Select(s => s.warehouseSkuId).Where(s => !s.IsNullOrEmpty()).Distinct().ToList();
var realSkus = bodyObj["skus"].Where(b => outServerGoodsParam.skus.Any(s => s.warehouseSkuId == b["warehouseSkuId"].ParseToString()));
var realSkuLst = realSkus.ToList();
if (realSkuLst.Any(rs => !warehouseSkuIdList.Any(s => s == rs["warehouseSkuId"].ParseToString()))) // 如果sku有对应不上的也要跳过
success = false;
var bodyRstLst = bodyRstObj["skus"].ToList();
var missCount = realSkuLst.Where(b => !bodyRstLst.Any(br => br.ParseToString() == b.ParseToString())).Count();
if (missCount > 0)
success = false;
//var missCount = bodyObj["skus"].Where(b => !bodyRstObj["skus"].Any(br => br.ParseToString() == b.ParseToString())).Count();
//var skuCount = bodyObj["skus"].Count();
//if (missCount > 0)
//{
// success = false;
// if ((missCount == 1 || missCount == 2) && skuCount - missCount > 3 && !bodyRstObj["skus"].Any(br => br["skuId"].ParseToString().StartsWith("2030")))
// {
// var urlFail = BaseClass.BuildPDDObjString("product/mdy_product");
// var dataFail = Work.UserLogin.GetSignaturex() +
// "&spu_id=" + dbProd.spu_id +
// "&standby3=" + 3;
// var htmlFail = GetHtml.PostUtf8(urlFail, dataFail);
// prod.standby3 = "1";
// dbProd.standby3 = "1";
// continue;
// }
//}
if (!success)
{
continue;
//continue;
var urlFail = BaseClass.BuildPDDObjString("product/mdy_product");
var dataFail = Work.UserLogin.GetSignaturex() +
"&spu_id=" + dbProd.spu_id +
"&standby3=" + 3;
"&standby3=" + 5;
var htmlFail = GetHtml.PostUtf8(urlFail, dataFail);
continue;
}
@@ -2160,8 +2109,12 @@ namespace TemuKJD.PDDForms.ProductSelectForms
var url3 = BaseClass.BuildPDDObjString("product/mdy_product");
var data3 = Work.UserLogin.GetSignaturex() +
"&spu_id=" + dbProd.spu_id +
"&standby3=" + 1;
"&spu_id=" + dbProd.spu_id;
//if (dbProd.standby3 == "5" || dbProd.standby3 == "6")
// data3 += "&standby3=" + 6;
//else
// data3 += "&standby3=" + 1;
data3 += "&standby3=" + 6;
var html = GetHtml.PostUtf8(url3, data3);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url3, data3);
@@ -2186,11 +2139,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
{
}
Thread.Sleep(100);
// 查询微信接口token
//url = "https://po.e57.cn/prod-api/api/sys-api/system/open/api/shop/list?userName=阿杰账户";
//exportRst = WXHttpResponseBLL.e57PostResponse(url, "&warehouseNum=123456&shopId=46568955", "");
//exportRst = WXHttpResponseBLL.e57GetResponse(url, "");
}
}
}