1拼多多商品分组 2拼多多登录逻辑优化
This commit is contained in:
1 parent
8fb90422a2
commit
378170ffb5
36 files changed
+4272
-736
No files matched your search
@@ -502,7 +502,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
|
||||
if (shop != null)
|
||||
{
|
||||
var loginResult = PDDShopListForm.GetShopStatus(shop);
|
||||
var loginResult = PDDShopListForm.CheckShopLogin(shop);
|
||||
if (!loginResult.Contains("\"success\":true"))
|
||||
{
|
||||
shop.Cookies = "empty=true;";
|
||||
|
||||
@@ -205,7 +205,9 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
Invoke(new Action(() => { this.Close(); }));
|
||||
}
|
||||
else
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -547,9 +549,13 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
var data = responseData;
|
||||
if (this.shop != null && data.Contains("\"success\":true"))
|
||||
{
|
||||
var username = BaseRegex.GetStringJson(ref data, "username");
|
||||
var maskMobile = BaseRegex.GetStringJson(ref data, "mobile");
|
||||
maskMobile = maskMobile.Split('*').Last();
|
||||
if (!string.IsNullOrEmpty(maskMobile) && shop.LoginName.EndsWith(maskMobile))
|
||||
if (string.IsNullOrWhiteSpace(maskMobile) || string.IsNullOrWhiteSpace(username))
|
||||
return;
|
||||
|
||||
if (shop.LoginName.EndsWith(maskMobile) || shop.LoginName == username)
|
||||
{
|
||||
lstShopCompany.Clear();
|
||||
var jObj = JObject.Parse(data);
|
||||
|
||||
Reference in new issue
Block a user