From 84616e6d524a7df88ebcca4b74aca42461f34605 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 19 六月 2020 20:25:09 +0800 Subject: [PATCH] '商品信息完善' --- WindowsFormsApp1/utils/tb/TBCookieUtil.cs | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/WindowsFormsApp1/utils/tb/TBCookieUtil.cs b/WindowsFormsApp1/utils/tb/TBCookieUtil.cs index 0533544..2927291 100644 --- a/WindowsFormsApp1/utils/tb/TBCookieUtil.cs +++ b/WindowsFormsApp1/utils/tb/TBCookieUtil.cs @@ -44,10 +44,7 @@ //鐧诲綍澶辨晥 public static void InvalidLogin(int position) { - if (Constant.tbAccountMap.ContainsKey(position) && Constant.tbAccountMap[position].Login) { - Constant.tbAccountMap[position].Login = false; - Constant.tbAccountMap[position].UpdateTime = new DateTime(); - } + TBAccountManager.OFFLine(position); } //鐧诲綍鏄惁鏈夋晥 @@ -60,11 +57,7 @@ if (login != null && login.Login) { //鐧诲綍鎴愬姛 - if (WindowsFormsApp1.utils.Constant.tbAccountMap.ContainsKey(position)) - { - WindowsFormsApp1.utils.Constant.tbAccountMap.Remove(position); - } - WindowsFormsApp1.utils.Constant.tbAccountMap.Add(position, login); + TBAccountManager.LoginSuccess(position, login); //涓婁紶Cookie ApiUtil.uploadCookie( cookies, null); return true; -- Gitblit v1.8.0