Commit 64d3b075 by zxw

调整杭州自建获取token模块

parent 106db930
......@@ -23,7 +23,7 @@ namespace JunmpPoliceStation.Extensions
private readonly string _secretKey;
private readonly string _apiVersion;
private readonly string _organizationId;
private readonly bool _noSignFlag;
private readonly bool _noCheckTIP;
public readonly string _centerServerAddress;
public HttpHelper(IConfiguration configuration)
{
......@@ -32,7 +32,7 @@ namespace JunmpPoliceStation.Extensions
_apiVersion = "1.0";
_organizationId = configuration["ThirdConfig:OrganizationId"] ?? "";
_centerServerAddress = configuration["ThirdConfig:CenterServerAddress"] ?? "";
bool.TryParse(configuration.GetSection("Auth:NoSign").Value, out _noSignFlag);
bool.TryParse(configuration.GetSection("Auth:NoCheckTIP").Value, out _noCheckTIP);
}
#region 预定义方变量
......@@ -62,7 +62,7 @@ namespace JunmpPoliceStation.Extensions
try
{
//准备参数
if (!_noSignFlag) //本地测试不添加验证
if (!_noCheckTIP) //本地测试不添加验证
{
if (!item.IsNoTIP)
{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论