2021-05-27 16:58:40 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Threading.Tasks;
|
2022-05-17 18:07:00 +08:00
|
|
|
|
using Microsoft.AspNetCore.Http;
|
2021-05-27 16:58:40 +08:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
2022-05-17 18:07:00 +08:00
|
|
|
|
using Nirvana.Common;
|
2021-05-27 16:58:40 +08:00
|
|
|
|
|
|
|
|
|
|
namespace Waste.Web.Entry.Pages.Login
|
|
|
|
|
|
{
|
|
|
|
|
|
public class IndexModel : PageModel
|
|
|
|
|
|
{
|
2022-05-17 18:07:00 +08:00
|
|
|
|
private readonly IHttpContextAccessor _httpContextAccessor;
|
|
|
|
|
|
public string Logo = Furion.App.Configuration["CustomSetting:Logo"];
|
|
|
|
|
|
public string SoftName = Furion.App.Configuration["CustomSetting:SoftName"];
|
|
|
|
|
|
public string SoftDesc = Furion.App.Configuration["CustomSetting:SoftDesc"];
|
|
|
|
|
|
public string copyright = Furion.App.Configuration["CustomSetting:copyright"];
|
|
|
|
|
|
public IndexModel(IHttpContextAccessor httpContextAccessor)
|
|
|
|
|
|
{
|
|
|
|
|
|
_httpContextAccessor = httpContextAccessor;
|
|
|
|
|
|
}
|
2021-05-27 16:58:40 +08:00
|
|
|
|
public void OnGet()
|
|
|
|
|
|
{
|
2022-05-17 18:07:00 +08:00
|
|
|
|
var host = _httpContextAccessor.HttpContext.Request.Host.Host;
|
|
|
|
|
|
if(!host.IsEmpty() && host.ToLower() == "w.jt-sky.com")
|
|
|
|
|
|
{
|
|
|
|
|
|
Logo = "";
|
|
|
|
|
|
SoftName = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨";
|
|
|
|
|
|
SoftDesc = "";
|
|
|
|
|
|
copyright = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨";
|
|
|
|
|
|
}
|
2021-05-27 16:58:40 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|