/// <summary> /// 用户现在 /// </summary> /// <param name="taskId">任务标识</param> /// <param name="userInfo">用户</param> /// <param name="onLineState">用户在线状态</param> public void Online(string taskId, BaseUserInfo userInfo, int onLineState = 1) { var parameter = ServiceInfo.Create(taskId, userInfo, MethodBase.GetCurrentMethod()); ServiceUtil.ProcessUserCenterWriteDb(userInfo, parameter, (dbHelper) => { var userLogonManager = new BaseUserLogonManager(); userLogonManager.Online(userInfo.UserId, onLineState); }); }