/// <summary> /// 记录登录日志 /// </summary> /// <param name="loginname">用户名</param> /// <param name="status">登录结果</param> /// <param name="systemtype">系统类型</param> /// <param name="operateip">登录IP</param> public static async void AddLoginLog(string loginname, string operateip, string userid, EnumUserOperateType systemtype = EnumUserOperateType.Login, string remark = "用户登录") { if ((int)systemtype == 7) { if (userid != "993b30f7-a8c4-49f9-b2bc-0b629d34bb76") { await LogDAL.AddManageLoginLog(loginname, (int)systemtype, operateip, userid, remark); } } else { await LogDAL.AddLoginLog(loginname, (int)systemtype, operateip, userid, remark); } }
/// <summary> /// 记录登录日志 /// </summary> /// <param name="loginname">用户名</param> /// <param name="status">登录结果</param> /// <param name="systemtype">系统类型</param> /// <param name="operateip">登录IP</param> public static async void AddLoginLog(string loginname, bool status, EnumSystemType systemtype, string operateip, string userid, string clientid) { await LogDAL.AddLoginLog(loginname, status? 1 : 0, (int)systemtype, operateip, userid, clientid); }
/// <summary> /// 记录登录日志 /// </summary> /// <param name="loginname">用户名</param> /// <param name="status">登录结果</param> /// <param name="systemtype">系统类型</param> /// <param name="operateip">登录IP</param> public static async void AddLoginLog(string loginname, string operateip, string userid, EnumUserOperateType systemtype = EnumUserOperateType.Login, string leveid = "") { await LogDAL.AddLoginLog(loginname, (int)systemtype, operateip, userid, leveid); }
public static async void AddLoginLog(int uid, int type, string operateip, string ipName, string remark) { await LogDAL.AddLoginLog(uid, type, operateip, ipName, remark); }