分组逻辑优化
This commit is contained in:
1 parent
378170ffb5
commit
1745f3c397
11 files changed
+280
-718
No files matched your search
@@ -311,13 +311,20 @@ namespace TemuKJD.PDDForms.ShopForms
|
||||
html = GetHtml.PostUtf8(url, data);
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
{
|
||||
string msg = "选品商品保存失败!请检查网络连接:" +
|
||||
BaseRegex.GetStringJson(ref html, "msg");
|
||||
OnInfoReceived(msg);
|
||||
string msg = "选品商品保存失败!请检查网络连接:" + BaseRegex.GetStringJson(ref html, "msg");
|
||||
//OnInfoReceived(msg);
|
||||
MainForm.instance.Invoke(new Action(() =>
|
||||
{
|
||||
BaseMsgForm.ShowError(msg);
|
||||
}));
|
||||
}
|
||||
else
|
||||
{
|
||||
OnInfoReceived("选品商品保存成功!" + success_err_msg);
|
||||
//OnInfoReceived("选品商品保存成功!" + success_err_msg);
|
||||
MainForm.instance.Invoke(new Action(() =>
|
||||
{
|
||||
BaseMsgForm.ShowError("选品商品保存成功!" + success_err_msg);
|
||||
}));
|
||||
}
|
||||
|
||||
//// 创建 SaveFileDialog 的实例
|
||||
|
||||
@@ -576,7 +576,7 @@ namespace TemuKJD.PDDForms.ShopForms
|
||||
if (shop != null)
|
||||
{
|
||||
var loginResult = CheckShopLogin(shop);
|
||||
if (!loginResult.Contains("\"success\":true"))
|
||||
if (!loginResult.Contains("\"success\":true") || !loginResult.Contains("\"login\":true"))
|
||||
{
|
||||
shop.Cookies = "empty=true;";
|
||||
foreach (var sc in campanys)
|
||||
@@ -909,6 +909,7 @@ namespace TemuKJD.PDDForms.ShopForms
|
||||
this.pbLoading.Visible = false;
|
||||
this.splitContainer1.Panel1.Enabled = true;
|
||||
}));
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -1048,6 +1049,7 @@ namespace TemuKJD.PDDForms.ShopForms
|
||||
this.pbLoading.Visible = false;
|
||||
this.splitContainer1.Panel1.Enabled = true;
|
||||
}));
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user