private IHttpContextAccessor _HttpContextAccessor; //注入 var Host= _HttpContextAccessor.HttpContext.Request.Host.ToString();