1店铺登录逻辑优化 2备货单查询显示
This commit is contained in:
1 parent
89eb9ce9d4
commit
862ad088f5
216 files changed
+3481
-1543
No files matched your search
+17
-17
@@ -12,16 +12,16 @@ using CefSharp.WinForms;
|
||||
using DevComponents.DotNetBar;
|
||||
using AllBase;
|
||||
using Work;
|
||||
using LittleRabbit.UserForm;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using LittleRabbit.LittleRabbitForms.ToolForms;
|
||||
using TemuKJD.UserForm;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using TemuKJD.KJDForms.ToolForms;
|
||||
using System.Reflection;
|
||||
using System.Net;
|
||||
using System.Collections;
|
||||
using LittleRabbit.LittleRabbitForms.ShopForms;
|
||||
using LittleRabbit.LittleRabbitForms.UploadForms;
|
||||
using LittleRabbit.LittleRabbitForms.OrderForms;
|
||||
using LittleRabbit.LittleRabbitForms.SystemForms;
|
||||
using TemuKJD.KJDForms.ShopForms;
|
||||
using TemuKJD.KJDForms.UploadForms;
|
||||
using TemuKJD.KJDForms.OrderForms;
|
||||
using TemuKJD.KJDForms.SystemForms;
|
||||
using Work.CollectClass;
|
||||
using Newtonsoft.Json;
|
||||
using System.Text;
|
||||
@@ -29,7 +29,7 @@ using System.IO;
|
||||
using CefSharp;
|
||||
using System.IO.Compression;
|
||||
using AllBase.Helper;
|
||||
using LittleRabbit.LittleRabbitForms.CollectForms;
|
||||
using TemuKJD.KJDForms.CollectForms;
|
||||
using System.Drawing.Drawing2D;
|
||||
using NaiBa.CefHelper;
|
||||
using Newtonsoft.Json.Linq;
|
||||
@@ -37,10 +37,10 @@ using AllBase.Model.Result;
|
||||
using NaiBa.Util.Extension;
|
||||
using NaiBa.Util;
|
||||
using AllBase.Model.Param.ProductManage;
|
||||
using LittleRabbit.LittleRabbitForms.SalesCenterForms;
|
||||
using TemuKJD.KJDForms.SalesCenterForms;
|
||||
using NaiBa.CefHelper.Handler;
|
||||
|
||||
namespace LittleRabbit
|
||||
namespace TemuKJD
|
||||
{
|
||||
public partial class MainForm : Form
|
||||
{
|
||||
@@ -641,14 +641,14 @@ namespace LittleRabbit
|
||||
if (WindowState.Equals(FormWindowState.Normal))
|
||||
{
|
||||
WindowState = FormWindowState.Maximized;
|
||||
max.Style.BackgroundImage = global::LittleRabbit.Properties.Resources.normal;
|
||||
max.StyleMouseOver.BackgroundImage = global::LittleRabbit.Properties.Resources.normal_hover;
|
||||
max.Style.BackgroundImage = global::TemuKJD.Properties.Resources.normal;
|
||||
max.StyleMouseOver.BackgroundImage = global::TemuKJD.Properties.Resources.normal_hover;
|
||||
}
|
||||
else if (WindowState.Equals(FormWindowState.Maximized))
|
||||
{
|
||||
WindowState = FormWindowState.Normal;
|
||||
max.Style.BackgroundImage = global::LittleRabbit.Properties.Resources.max;
|
||||
max.StyleMouseOver.BackgroundImage = global::LittleRabbit.Properties.Resources.max_hover;
|
||||
max.Style.BackgroundImage = global::TemuKJD.Properties.Resources.max;
|
||||
max.StyleMouseOver.BackgroundImage = global::TemuKJD.Properties.Resources.max_hover;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -961,7 +961,7 @@ namespace LittleRabbit
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var shop in GlobalConfig.DouShopLoginList)
|
||||
foreach (var shop in GlobalConfig.ShopLoginList)
|
||||
{
|
||||
if (shop.LoginStatus != "登录成功")
|
||||
continue;
|
||||
@@ -988,7 +988,7 @@ namespace LittleRabbit
|
||||
Thread.Sleep(10000);
|
||||
|
||||
// 读取过全部违规数据的不再读取
|
||||
if (dicLastGetFullViolateTime.ContainsKey(shop.ShopAccountId) && dicLastGetFullViolateTime[shop.ShopAccountId] > DateTime.Now.AddDays(-3000))
|
||||
if (dicLastGetFullViolateTime.ContainsKey(shop.ShopId) && dicLastGetFullViolateTime[shop.ShopId] > DateTime.Now.AddDays(-3000))
|
||||
continue;
|
||||
|
||||
for (int i = 2; i < 101; i++)
|
||||
@@ -1008,7 +1008,7 @@ namespace LittleRabbit
|
||||
if (t1.Result.Result?.ToString() != "success")
|
||||
break;
|
||||
}
|
||||
dicLastGetFullViolateTime[shop.ShopAccountId] = DateTime.Now;
|
||||
dicLastGetFullViolateTime[shop.ShopId] = DateTime.Now;
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig<Dictionary<string, DateTime>>("last_get_full_violate_time", dicLastGetFullViolateTime);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user