public class QrCodeLoginAppService : EvaluationSystemAppServiceBase { private IHttpContextAccessor _httpContextAccessor; public QrCodeLoginAppService( IHttpContextAccessor httpContextAccessor) { _httpContextAccessor = httpContextAccessor; } public async Task<int> QrLoginChangeState(QrLoginChangeStateInput input) { _httpContextAccessor.HttpContext.Request.Cookies.TryGetValue("webToken", out var ck); } }
abp Application层,接口服务层,获取请求的信息
原文:https://www.cnblogs.com/wangyinlon/p/14688616.html