using System; using System.Collections.Generic; using CefSharp.WinForms; using Work.CollectClass; using AllBase; using WebSocketSharp; namespace Work.Api { public class ShopChatBase { public string ShopId = ""; public DateTime EndDate = DateTime.Now.AddDays(-1); public DateTime EndDateExplode = DateTime.Now.AddDays(-1); public string ShopName = ""; public string Name = ""; public string UserName = ""; public string UserInfo = ""; public string PassId = ""; public string ClientId = ""; [Newtonsoft.Json.JsonIgnore] public ChromiumWebBrowser Chat = null; [Newtonsoft.Json.JsonIgnore] public ChromiumWebBrowser Main = null; [Newtonsoft.Json.JsonIgnore] public WebSocket client = null; public string clientMessage = ""; public bool clientflag = false; public int ChatCount = 0; public string Cookies = ""; public string CookiesUid = ""; public string CookiesPid = ""; public string Password = ""; public string Message = ""; public string APIMessage = ""; public string bondedWarehouseKey = ""; public string bondedWarehouseName = ""; public string pjtToken = ""; /// /// 是否续费和有cookies /// public bool Showed = false; /// /// 是否高级突破 /// public bool Explode = false; /// /// 店铺是否可上传 /// public bool CanUpload = false; /// /// 选择 /// public bool Select = false; /// /// 极品飞车推广专用 /// public bool SelectForFlightCar = false; /// /// 极品飞车优化专用 /// public bool SelectForFlightCar2 = false; /// /// 极品飞车推广答题考试专用 /// public bool SelectForFlightCar3 = false; /// /// 极品飞车定时检测专用 /// public bool SelectForFlightCar4 = false; /// /// 极品飞车明细专用 /// public bool SelectForFlightCar5 = false; /// /// 选择 /// public bool SelectReplace = false; public bool SelectClearDown = false; public bool SelectPayOrder = false; public bool SelectStore = false; public bool SelectFood = false; public bool SelectMedicinal = false; public bool SelectResure = false; public bool SelectPlan = false; public bool SelectCps = false; public bool SelectVio = false; public bool SelectAdv = false; public bool SelectQue = false; public bool SelectWhite = false; public bool SelectCoS = false; public bool SelectResurVio = false; public bool SelectWithMoney = false; public bool SelectProductCheck = false; public int X = 0; public int Y = 0; public int MallId = 0; /// /// 店铺主营类目 /// public int MainCatId = 0; public int ReceiverId = 0; public string MainCatName = ""; public string UserCatName = ""; public int UpCount = 0; public int ProductCount = 0; public long ExpressId = 0; public int WaitTimes = 0; public string AccessToken = ""; public string RefreshToken = ""; public int GoodsCount = 0; public int MappCount = 0; public List ReplaceTitleProduct = new List(); public List OnlineProduct = new List(); public List OnOrOffProduct = new List(); public List OnOrOffArrProduct = new List(); public List ResurVioProduct = new List(); public List ResurVioSalesProduct = new List(); public List OnIds = new List(); public List OffIds = new List(); public List SellOutProduct = new List(); public List jinBaoProduct = new List(); public List VioProduct = new List(); public List Visit = new List(); public DateTime Expiration = DateTime.Now.AddDays(-1); public string commission = ""; public WithDraw withDraw = new WithDraw(); public Dictionary SignErrorTimes = new Dictionary(); /// /// 已上传过的商品 /// public Dictionary UpFromIds = new Dictionary(); public ShopChatBase Clone() { string html = JsonHelper.SerializeObject(this); ShopChatBase tp = JsonHelper.DeserializeJsonToObject(html); return tp; } public CpsShopBase CpsShop = new CpsShopBase(); public class CpsShopBase { /// /// 全店进宝佣金比例 /// public string Percent = ""; /// /// 店铺商品总数 /// public int GoodsCount = 0; /// /// 已有进宝数 /// public int HadCpsCount = 0; /// /// 新增进宝数 /// public int NewCpsCount = 0; /// /// 未达标进宝数 /// public int InvalidCpsCount = 0; /// /// 店铺开通状态,0:待查询 1:已开通特权 2:未开通 3:非特权开通 /// public int Status = 0; public string StatusString { get { if (Status == 0) return "待查询"; if (Status == 1) return "已开通"; if (Status == 2) return "待同意协议"; if (Status == 3) return "可设置"; return "待查询"; } } public string Message = ""; public string AccessToken = ""; public string RefreshToken = ""; public Dictionary GoodsIds = new Dictionary(); } [Newtonsoft.Json.JsonIgnore] public DelGroupStatus ArrangeShop = new DelGroupStatus(); [Newtonsoft.Json.JsonIgnore] public DelGroupStatus AutoShop = new DelGroupStatus(); [Newtonsoft.Json.JsonIgnore] public DelGroupStatus DelGroupShop = new DelGroupStatus(); [Newtonsoft.Json.JsonIgnore] public DelGroupStatus ClearNoVisitShop = new DelGroupStatus(); } public class UpProId { public string upProIdOne = ""; public string upProIdTwo = ""; } }