using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WMS.BZModels.Models.UserCenterManager; using WMS.Info; using WMS.BZSqlSugar; namespace WMS.BZServices.BLL { public class BZLoginUserOutBLL : IBLL { private static Repository _aclUsertokenRepository => new Repository(); public object OutObjData { get; set; } public string SuccessMsg { get; set; } = "系统退出成功。"; public LoginUserInfo LoginUser { get; set; } public string InJsonData { get; set; } public string BLLDesc { get; private set; } = "系统退出"; public void Exec() { try { string tokenno = SysSecurityHelp.Aes256Decrypt(LoginUser.EncryptTokenNo); _aclUsertokenRepository.Deleteable().Where(it => it.Code == tokenno).ExecuteCommand(); } catch (Exception ex) { throw ex; } } } }