public static void Postpone() { var userInfo = GetUserInfo(); if (userInfo != null) { SSOUtil.Postpone(userInfo.Token); } }
public CustomJsonResult CheckPermission(string operater, string userId, string token, RupOwnCheckPermission rop) { var result = new CustomJsonResult(); SSOUtil.Postpone(token); result = new CustomJsonResult(ResultType.Success, ResultCode.Success, "检查成功"); return(result); }
public static void Postpone() { var userInfo = GetUserInfo(); if (userInfo != null) { var context = HttpContext.Current; var request = context.Request; var response = context.Response; var token = request.Cookies[OwnRequest.SESSION_NAME]; if (token == null) { SSOUtil.Postpone(token.Value); } } }