22 lines
528 B
C#
22 lines
528 B
C#
using APT.Infrastructure.Core;
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
namespace APT.Utility
|
|
{
|
|
public class HeadHelper
|
|
{
|
|
/// <summary>
|
|
/// 地球半径
|
|
/// </summary>
|
|
public const string HeadtelnetCode = "003";
|
|
|
|
public static bool GetIsHead(IHeaderDictionary Headers)
|
|
{
|
|
if (Headers != null && Headers.ContainsKey("Tenant") && Headers["Tenant"] == HeadtelnetCode)
|
|
{
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
} |