admin
2020-06-22 924bdf1c9fb74babf2438d5545db3594756625d1
WindowsFormsApp1/utils/TBAccountManager.cs
@@ -42,6 +42,24 @@
            }
        }
        public static void Delete(int index) {
            if (Constant.tbAccountMap.ContainsKey(index)) {
                TBAccountLogin account = Constant.tbAccountMap[index];
                Constant.tbAccountMap.Remove(index);
                LogManager.AddLog(new LogInfo(DateTime.Now, "第" + index + "个淘宝账号(" + account.NickName + ")授权被删除", LogInfo.TYPE_NORMAL));
                SQLiteDataBaseUtil.getInstance().TBDelete(index);
            }
        }
        public static bool IsHaveOffLine() {
            foreach (int key in Constant.tbAccountMap.Keys) {
                if (Constant.tbAccountMap != null && Constant.tbAccountMap[key].Login == false && !StringUtil.isEmpty(Constant.tbAccountMap[key].NickName))
                    return true;
            }
            return false;
        }