微信界面调整 拼多多买手售后单问题修复
This commit is contained in:
1 parent
f9572ea046
commit
a3d15b1b3d
50 files changed
+2076
-1932
No files matched your search
@@ -45,7 +45,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
ConcurrentList<PddBuyerOrderInfoLite> lstPddBuyerOrderInfoLite { get; set; } = new ConcurrentList<PddBuyerOrderInfoLite>();
|
||||
ConcurrentList<PddBuyerAfterSaleInfoLite> lstPddBuyerAfterSaleInfoLite { get; set; } = new ConcurrentList<PddBuyerAfterSaleInfoLite>();
|
||||
public CancellationTokenSource cancellationTokenSource { get; set; } = new CancellationTokenSource();
|
||||
public ChromiumWebBrowser cefWebBrowser = null;
|
||||
//public ChromiumWebBrowser cefWebBrowser = null;
|
||||
public BuyerOrderConfig buyerOrderConfig = new BuyerOrderConfig();
|
||||
public DateTime nextGetOrderTime = DateTime.MinValue;
|
||||
public bool isLoadComplate = false;
|
||||
@@ -72,8 +72,6 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
dgvAfterSale.Height = dgvPddBuyerOrder.Height;
|
||||
dgvAfterSale.SendToBack();
|
||||
|
||||
InitCef();
|
||||
|
||||
buyerOrderConfig = NaiBa.Util.Helper.ConfigHelper.LoadConfig<BuyerOrderConfig>("pdd_buyer_order_config");
|
||||
if (buyerOrderConfig == null)
|
||||
buyerOrderConfig = new BuyerOrderConfig();
|
||||
@@ -101,6 +99,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
{
|
||||
Thread.Sleep(500);
|
||||
}
|
||||
InitCef();
|
||||
ShowExistOrder();
|
||||
|
||||
while (isInitOrder || isInitAfterSale)
|
||||
@@ -136,34 +135,42 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
void ShowExistOrder()
|
||||
{
|
||||
isInitOrder = true;
|
||||
Task.Run(() => {
|
||||
foreach(var order in lstPddBuyerOrderInfoLite)
|
||||
//Task.Run(() => {
|
||||
int index = 0;
|
||||
foreach (var order in lstPddBuyerOrderInfoLite)
|
||||
{
|
||||
if (index % 100 == 0)
|
||||
Thread.Sleep(1);
|
||||
index++;
|
||||
if (GlobalConfig.BuyerLoginList.Any(b => b.buyer_id == order.buyerId))
|
||||
{
|
||||
if (GlobalConfig.BuyerLoginList.Any(b => b.buyer_id == order.buyerId))
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
ShowOrder(order);
|
||||
}));
|
||||
}
|
||||
ShowOrder(order);
|
||||
}));
|
||||
}
|
||||
isInitOrder = false;
|
||||
});
|
||||
}
|
||||
isInitOrder = false;
|
||||
//});
|
||||
|
||||
isInitAfterSale = true;
|
||||
Task.Run(() => {
|
||||
foreach (var afterSale in lstPddBuyerAfterSaleInfoLite)
|
||||
//Task.Run(() => {
|
||||
//int index = 0;
|
||||
foreach (var afterSale in lstPddBuyerAfterSaleInfoLite)
|
||||
{
|
||||
if (index % 100 == 0)
|
||||
Thread.Sleep(1);
|
||||
index++;
|
||||
if (GlobalConfig.BuyerLoginList.Any(b => b.buyer_id == afterSale.buyerId))
|
||||
{
|
||||
if (GlobalConfig.BuyerLoginList.Any(b => b.buyer_id == afterSale.buyerId))
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
ShowAfterSale(afterSale);
|
||||
}));
|
||||
}
|
||||
ShowAfterSale(lstPddBuyerAfterSaleInfoLite.FirstOrDefault(a => a.orderSn == afterSale.orderSn));
|
||||
}));
|
||||
}
|
||||
isInitAfterSale = false;
|
||||
});
|
||||
}
|
||||
isInitAfterSale = false;
|
||||
//});
|
||||
}
|
||||
|
||||
void ShowOrder(PddBuyerOrderInfoLite order)
|
||||
@@ -264,6 +271,11 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
if (afterSale == null)
|
||||
return;
|
||||
|
||||
if (afterSale.orderSn == "260414-035525772830257")
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
var row = dgvAfterSale.Rows.Cast<DataGridViewRow>().FirstOrDefault(p => p.Cells.GetCellValueFromColumnName("colRPddOrderSn").ParseToString() == afterSale.orderSn);
|
||||
if (row == null)
|
||||
{
|
||||
@@ -337,20 +349,27 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
|
||||
private void InitCef()
|
||||
{
|
||||
cefWebBrowser = CEFBrowser.CreateChromiumWebBrowser("about:blank", false);
|
||||
CustomResourceRequestHandlerLocal resourceRequestHandler = new CustomResourceRequestHandlerLocal();
|
||||
resourceRequestHandler.ResourceLoadCompleteEvent += RequestHandler_ResourceLoadComplete;
|
||||
resourceRequestHandler.BeforeResourceLoadEvent += RequestHandler_BeforeResourceLoad;
|
||||
cefWebBrowser.RequestHandler = new CustomRequestHandler(resourceRequestHandler);
|
||||
var lifeSapnHandler = new LifeSpanHandlerLocal(PopWindowType.SelfWindow);
|
||||
cefWebBrowser.LifeSpanHandler = lifeSapnHandler;
|
||||
cefWebBrowser.KeyboardHandler = new KeyboardHandler();
|
||||
cefWebBrowser.FrameLoadEnd += CefWebBrowser_FrameLoadEnd;
|
||||
cefWebBrowser.AddressChanged += CefWebBrowser_AddressChanged;
|
||||
cefWebBrowser.LoadError += CefWebBrowser_LoadError;
|
||||
cefWebBrowser.Dock = DockStyle.Fill;
|
||||
cefWebBrowser.SendToBack();
|
||||
splitContainer3.Panel2.Controls.Add(cefWebBrowser);
|
||||
foreach (var buyer in GlobalConfig.BuyerLoginList)
|
||||
{
|
||||
Thread.Sleep(1);
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
buyer.browser = CEFBrowser.CreateChromiumWebBrowser("about:blank", false);
|
||||
CustomResourceRequestHandlerLocal resourceRequestHandler = new CustomResourceRequestHandlerLocal();
|
||||
resourceRequestHandler.ResourceLoadCompleteEvent += RequestHandler_ResourceLoadComplete;
|
||||
resourceRequestHandler.BeforeResourceLoadEvent += RequestHandler_BeforeResourceLoad;
|
||||
buyer.browser.RequestHandler = new CustomRequestHandler(resourceRequestHandler);
|
||||
var lifeSapnHandler = new LifeSpanHandlerLocal(PopWindowType.SelfWindow);
|
||||
buyer.browser.LifeSpanHandler = lifeSapnHandler;
|
||||
buyer.browser.KeyboardHandler = new KeyboardHandler();
|
||||
buyer.browser.FrameLoadEnd += CefWebBrowser_FrameLoadEnd;
|
||||
buyer.browser.AddressChanged += CefWebBrowser_AddressChanged;
|
||||
buyer.browser.LoadError += CefWebBrowser_LoadError;
|
||||
buyer.browser.Dock = DockStyle.Fill;
|
||||
buyer.browser.SendToBack();
|
||||
splitContainer3.Panel2.Controls.Add(buyer.browser);
|
||||
}));
|
||||
}
|
||||
|
||||
//js绑定C#对象
|
||||
//PDDShopBrowserObject shopObj = new PDDShopBrowserObject();
|
||||
@@ -450,7 +469,6 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
Task.Run(() =>
|
||||
{
|
||||
CefReadBuyerAfterSale(url1, data1);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
@@ -599,6 +617,11 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
if (buyer == null)
|
||||
return;
|
||||
|
||||
if (data.Contains("260414-035525772830257"))
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
if (data.Contains("\"listItemVOList\":[]") || data.Contains("\"hasNextQuery\":false"))
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
@@ -623,20 +646,35 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
var list = JsonHelper.DeserializeJsonToList<PddBuyerAfterSaleInfoLite>(JsonHelper.JObjectParse(data)["result"]["listItemVOList"].ParseToString());
|
||||
foreach (var af in list)
|
||||
{
|
||||
if (af.orderSn == "260414-035525772830257")
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
af.buyerId = buyer.buyer_id;
|
||||
af.buyerName = buyer.buyer_name;
|
||||
|
||||
bool isUpdate = false;
|
||||
PddBuyerAfterSaleInfoLite afterSale = null;
|
||||
if (!this.lstPddBuyerAfterSaleInfoLite.Any(or => or.afterSalesId == af.afterSalesId))
|
||||
{
|
||||
isUpdate = true;
|
||||
afterSale = af;
|
||||
lstPddBuyerAfterSaleInfoLite.Add(afterSale);
|
||||
}
|
||||
else
|
||||
{
|
||||
afterSale = this.lstPddBuyerAfterSaleInfoLite.FirstOrDefault(aft => aft.afterSalesId == af.afterSalesId);
|
||||
if (JsonHelper.SerializeObject(afterSale) != JsonHelper.SerializeObject(af))
|
||||
var afterSaleTmp = JsonHelper.DeserializeJsonToObject<PddBuyerAfterSaleInfoLite>(JsonHelper.SerializeObject(afterSale));
|
||||
afterSaleTmp.sendStatus = "";
|
||||
afterSaleTmp.listItemMallVO = new ListItemMallVO();
|
||||
var afTmp = JsonHelper.DeserializeJsonToObject<PddBuyerAfterSaleInfoLite>(JsonHelper.SerializeObject(af));
|
||||
afTmp.listItemMallVO = new ListItemMallVO();
|
||||
//"{\"buyerId\":\"9303896321\",\"buyerName\":\"吴镇强\",\"sendStatus\":\"\",\"orderSn\":\"260419-166104962590257\",\"orderDate\":260419,\"afterSalesId\":20379701953346,\"listItemExtraVO\":{\"navToDetailPageUrl\":\"/complaints_new_detail.html?after_sales_id=20379701953346&order_sn=260419-166104962590257\"},\"listItemMallVO\":{\"mallName\":\"喜悦时光婚礼屋\",\"mallLogo\":\"http://t16img.yangkeduo.com/pdd_ims/img_check/v2/F3E6FF9A2BE40120200112155401880/9632a275dd974e9aa2e138cde6d0adf9.png\",\"mallTagLink\":null,\"pddRoute\":\"mall_page.html?mall_id=938572084&msn=zjdvupyguflkhtcgugbw3hbdpm_axbuy&_sop_rcto=YWLr7xLhO9bbI6L9S-r6ALQbTuXTx_3fIjo\"},\"listItemStatusVO\":{\"statusText\":\"待用户发货\"},\"listItemGoodsVO\":{\"goodsImage\":\"https://img.pddpic.com/mms-material-img/2026-03-21/005e0aa1-ad62-4db3-8018-00490ddc0a82.jpeg\",\"goodsName\":\"2026高级可折叠蚊帐家用卧室懒人免安装加高加厚加密学生宿舍蚊帐\",\"spec\":\"免安装/可折叠/网眼加密【可爱粉】+固定器,适用双人1.8m床【190*160*80】\",\"goodsPrice\":1890,\"goodsNumber\":1,\"richTextList\":null},\"listItemAmountVO\":{\"orderAmountTitle\":\"实付:\",\"orderAmount\":1890,\"payLaterAmountTitle\":null,\"payLaterAmount\":null,\"refundAmountTitle\":\"退款金额:\",\"refundAmount\":1890,\"refundAmountText\":null,\"useCoupon\":false}}"
|
||||
//"{\"buyerId\":\"9303896321\",\"buyerName\":\"吴镇强\",\"sendStatus\":\"\",\"orderSn\":\"260419-166104962590257\",\"orderDate\":260419,\"afterSalesId\":20379701953346,\"listItemExtraVO\":{\"navToDetailPageUrl\":\"/complaints_new_detail.html?after_sales_id=20379701953346&order_sn=260419-166104962590257\"},\"listItemMallVO\":{\"mallName\":\"喜悦时光婚礼屋\",\"mallLogo\":\"http://t16img.yangkeduo.com/pdd_ims/img_check/v2/F3E6FF9A2BE40120200112155401880/9632a275dd974e9aa2e138cde6d0adf9.png\",\"mallTagLink\":null,\"pddRoute\":\"mall_page.html?mall_id=938572084&msn=zjdvupyguflkhtcgugbw3hbdpm_axbuy&_sop_rcto=YWKCoxwbKDHFAaL9S-r6ALQbTuXTx_3fIjo\"},\"listItemStatusVO\":{\"statusText\":\"待用户发货\"},\"listItemGoodsVO\":{\"goodsImage\":\"https://img.pddpic.com/mms-material-img/2026-03-21/005e0aa1-ad62-4db3-8018-00490ddc0a82.jpeg\",\"goodsName\":\"2026高级可折叠蚊帐家用卧室懒人免安装加高加厚加密学生宿舍蚊帐\",\"spec\":\"免安装/可折叠/网眼加密【可爱粉】+固定器,适用双人1.8m床【190*160*80】\",\"goodsPrice\":1890,\"goodsNumber\":1,\"richTextList\":null},\"listItemAmountVO\":{\"orderAmountTitle\":\"实付:\",\"orderAmount\":1890,\"payLaterAmountTitle\":null,\"payLaterAmount\":null,\"refundAmountTitle\":\"退款金额:\",\"refundAmount\":1890,\"refundAmountText\":null,\"useCoupon\":false}}"
|
||||
if (JsonHelper.SerializeObject(afterSaleTmp) != JsonHelper.SerializeObject(afTmp))
|
||||
{
|
||||
isUpdate = true;
|
||||
//order = JsonHelper.DeserializeJsonToObject<PddBuyerOrderInfoLite>(JsonHelper.SerializeObject(o));
|
||||
afterSale.afterSalesId = af.afterSalesId;
|
||||
afterSale.listItemAmountVO = JsonHelper.DeserializeJsonToObject<ListItemAmountVO>(JsonHelper.SerializeObject(af.listItemAmountVO));
|
||||
@@ -654,18 +692,21 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
lblMsg.Text = buyer.buyer_name + " 近2个月售后列表获取完成,退出自动滑动 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
}));
|
||||
currentReadBuyer = "";
|
||||
return;
|
||||
//return;
|
||||
}
|
||||
|
||||
Task.Run(() =>
|
||||
if (isUpdate)
|
||||
{
|
||||
SendAfterSaleE57(afterSale);
|
||||
});
|
||||
Task.Run(() =>
|
||||
{
|
||||
SendAfterSaleE57(lstPddBuyerAfterSaleInfoLite.FirstOrDefault(a => a.orderSn == afterSale.orderSn));
|
||||
});
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
ShowAfterSale(afterSale);
|
||||
}));
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
ShowAfterSale(lstPddBuyerAfterSaleInfoLite.FirstOrDefault(a => a.orderSn == afterSale.orderSn));
|
||||
}));
|
||||
}
|
||||
}
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("pdd_buyer_after_sale_list", lstPddBuyerAfterSaleInfoLite);
|
||||
}
|
||||
@@ -790,7 +831,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
if (row == null)
|
||||
{
|
||||
var rowIndex = this.dgvBuyer.Rows.Add(
|
||||
selectIds.Contains(buyer.buyer_id),
|
||||
true,
|
||||
buyer.buyer_id,
|
||||
buyer.buyer_name,
|
||||
buyer.buyer_nick,
|
||||
@@ -862,6 +903,11 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
|
||||
Task.Run(() =>
|
||||
{
|
||||
while (isInitOrder || isInitAfterSale)
|
||||
{
|
||||
Thread.Sleep(500);
|
||||
}
|
||||
|
||||
currentReadBuyer = "";
|
||||
|
||||
foreach (var buyer in GlobalConfig.BuyerLoginList)
|
||||
@@ -872,25 +918,33 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
if (buyer.status != "在线")
|
||||
continue;
|
||||
|
||||
var row = dgvBuyer.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colBuyerNick"].Value.ParseToString() == buyer.buyer_nick);
|
||||
if (row == null || row.Cells["colSelect"].Value.ParseToBool() != true)
|
||||
{
|
||||
if (row != null)
|
||||
Invoke(new Action(() => { row.Cells["colMessage"].Value = "未勾选买手号,跳过"; }));
|
||||
continue;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
while (cefWebBrowser == null || !cefWebBrowser.IsBrowserInitialized || !cefWebBrowser.GetBrowser().MainFrame.IsValid)
|
||||
while (buyer.browser == null || !buyer.browser.IsBrowserInitialized || !buyer.browser.GetBrowser().MainFrame.IsValid)
|
||||
{
|
||||
Thread.Sleep(1);
|
||||
}
|
||||
|
||||
CEFBrowser.DeleteCookie(cefWebBrowser.GetCookieManager(null));
|
||||
CEFBrowser.DeleteCookie(buyer.browser.GetCookieManager(null));
|
||||
|
||||
var cookieLst = JsonHelper.DeserializeJsonToList<CefSharp.Cookie>(buyer?.cookie);
|
||||
var t = CEFBrowser.SetCookieAsync(JsonHelper.SerializeObject(cookieLst), cefWebBrowser.GetCookieManager(null));
|
||||
var t = CEFBrowser.SetCookieAsync(JsonHelper.SerializeObject(cookieLst), buyer.browser.GetCookieManager(null));
|
||||
|
||||
cefWebBrowser.Load("https://mobile.yangkeduo.com/personal.html");
|
||||
buyer.browser.Load("https://mobile.yangkeduo.com/personal.html");
|
||||
Thread.Sleep(Randomx.GetId(2000, 3000));
|
||||
|
||||
// 售后
|
||||
string readBuyer = buyer.buyer_id;
|
||||
currentReadBuyer = buyer.buyer_id;
|
||||
cefWebBrowser.Load("https://mobile.yangkeduo.com/complaint_list.html?refer_page_name=personal&refer_page_sn=10001&tab=all");
|
||||
buyer.browser.Load("https://mobile.yangkeduo.com/complaint_list.html?refer_page_name=personal&refer_page_sn=10001&tab=all");
|
||||
Thread.Sleep(Randomx.GetId(2000, 3000));
|
||||
|
||||
int top = 0;
|
||||
@@ -899,6 +953,8 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
break;
|
||||
|
||||
Invoke(new Action(() => { buyer.browser.BringToFront(); }));
|
||||
|
||||
top += Randomx.GetId(450, 600);
|
||||
Thread.Sleep(Randomx.GetId(100, 300));
|
||||
|
||||
@@ -914,19 +970,21 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
});";
|
||||
//var t1 = cefWebBrowser.GetMainFrame().EvaluateScriptAsync(jsStr);
|
||||
//t1.Wait(1000);
|
||||
var client = cefWebBrowser.GetDevToolsClient();
|
||||
var client = buyer.browser.GetDevToolsClient();
|
||||
if (client != null)
|
||||
{
|
||||
var result = client.Runtime.EvaluateAsync(jsStr, null, true, null, null, true, null, true);
|
||||
result.Wait(5000);
|
||||
}
|
||||
}
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
break;
|
||||
Thread.Sleep(Randomx.GetId(2000, 3000));
|
||||
|
||||
// 待发货
|
||||
readBuyer = buyer.buyer_id;
|
||||
currentReadBuyer = buyer.buyer_id;
|
||||
cefWebBrowser.Load("https://mobile.yangkeduo.com/orders.html?type=2");
|
||||
buyer.browser.Load("https://mobile.yangkeduo.com/orders.html?type=2");
|
||||
Thread.Sleep(Randomx.GetId(2000, 3000));
|
||||
|
||||
top = 0;
|
||||
@@ -935,6 +993,8 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
break;
|
||||
|
||||
Invoke(new Action(() => { buyer.browser.BringToFront(); }));
|
||||
|
||||
top += Randomx.GetId(450, 600);
|
||||
Thread.Sleep(Randomx.GetId(100,300));
|
||||
|
||||
@@ -950,19 +1010,21 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
});";
|
||||
//var t1 = cefWebBrowser.GetMainFrame().EvaluateScriptAsync(jsStr);
|
||||
//t1.Wait(1000);
|
||||
var client = cefWebBrowser.GetDevToolsClient();
|
||||
var client = buyer.browser.GetDevToolsClient();
|
||||
if (client != null)
|
||||
{
|
||||
var result = client.Runtime.EvaluateAsync(jsStr, null, true, null, null, true, null, true);
|
||||
result.Wait(5000);
|
||||
}
|
||||
}
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
break;
|
||||
Thread.Sleep(Randomx.GetId(2000, 3000));
|
||||
|
||||
// 已发货
|
||||
readBuyer = buyer.buyer_id;
|
||||
currentReadBuyer = buyer.buyer_id;
|
||||
cefWebBrowser.Load("https://mobile.yangkeduo.com/orders.html?type=3");
|
||||
buyer.browser.Load("https://mobile.yangkeduo.com/orders.html?type=3");
|
||||
Thread.Sleep(Randomx.GetId(2000, 3000));
|
||||
|
||||
top = 0;
|
||||
@@ -971,6 +1033,8 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
break;
|
||||
|
||||
Invoke(new Action(() => { buyer.browser.BringToFront(); }));
|
||||
|
||||
top += Randomx.GetId(450, 600);
|
||||
Thread.Sleep(Randomx.GetId(100, 300));
|
||||
|
||||
@@ -986,7 +1050,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
});";
|
||||
//var t1 = cefWebBrowser.GetMainFrame().EvaluateScriptAsync(jsStr);
|
||||
//t1.Wait(1000);
|
||||
var client = cefWebBrowser.GetDevToolsClient();
|
||||
var client = buyer.browser.GetDevToolsClient();
|
||||
if (client != null)
|
||||
{
|
||||
var result = client.Runtime.EvaluateAsync(jsStr, null, true, null, null, true, null, true);
|
||||
@@ -1135,24 +1199,28 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
shopLoginForm.Show();
|
||||
}
|
||||
break;
|
||||
case "详情":
|
||||
case "编辑/详情":
|
||||
//PDDDBProdEditForm editForm = new PDDDBProdEditForm(dbProduct);
|
||||
//if (BaseClass.MainPath != "binxixi")
|
||||
//{
|
||||
// editForm.pnlSkuOption.Visible = false;
|
||||
// editForm.txtProductName.ReadOnly = true;
|
||||
// editForm.txtExtCode.ReadOnly = true;
|
||||
// editForm.lblSkcId.Text = "仓库编码";
|
||||
//}
|
||||
//editForm.ShowDialog();
|
||||
//dgvDbProduct.Rows[e.RowIndex].Cells["col_notes"].Value = dbProduct.notes;
|
||||
//dgvDbProduct.Rows[e.RowIndex].Cells["col_ext_code"].Value = dbProduct.ext_code;
|
||||
//dgvDbProduct.Rows[e.RowIndex].Cells["colHeadWords"].Value = dbProduct.head_words;
|
||||
//dgvDbProduct.Rows[e.RowIndex].Cells["colEndWords"].Value = dbProduct.end_words;
|
||||
//dgvDbProduct.Rows[e.RowIndex].Cells["colFissionWords"].Value = dbProduct.fission_words;
|
||||
//dgvDbProduct.Rows[e.RowIndex].Cells["col_product_name"].Value = dbProduct.product_name;
|
||||
//dgvDbProduct.Rows[e.RowIndex].Cells["colSkuReplaceImgUrl"].Value = dbProduct.sku_img_replace_url;
|
||||
case "买手昵称":
|
||||
Task.Run(() =>
|
||||
{
|
||||
try
|
||||
{
|
||||
while (buyer.browser == null || !buyer.browser.IsBrowserInitialized || !buyer.browser.GetBrowser().MainFrame.IsValid)
|
||||
{
|
||||
Thread.Sleep(1);
|
||||
}
|
||||
if (!buyer.browser.Address.ParseToString().Contains("yangkeduo.com"))
|
||||
{
|
||||
CEFBrowser.DeleteCookie(buyer.browser.GetCookieManager(null));
|
||||
var cookieLst = JsonHelper.DeserializeJsonToList<CefSharp.Cookie>(buyer?.cookie);
|
||||
var t = CEFBrowser.SetCookieAsync(JsonHelper.SerializeObject(cookieLst), buyer.browser.GetCookieManager(null));
|
||||
buyer.browser.Load("https://mobile.yangkeduo.com/personal.html");
|
||||
}
|
||||
Invoke(new Action(()=> { buyer.browser?.BringToFront(); }));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
Thread.Sleep(Randomx.GetId(2000, 3000));
|
||||
});
|
||||
break;
|
||||
case "":
|
||||
case "全选":
|
||||
@@ -1685,9 +1753,9 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
{
|
||||
panel2.Visible = !panel2.Visible;
|
||||
if (panel2.Visible == false)
|
||||
panelEx3.Text = "打开";
|
||||
btnClose.Text = "打开";
|
||||
else
|
||||
panelEx3.Text = "折叠";
|
||||
btnClose.Text = "折叠";
|
||||
}
|
||||
|
||||
private void panelEx1_Click(object sender, EventArgs e)
|
||||
|
||||
Reference in new issue
Block a user