20230705集团对接
This commit is contained in:
@@ -14,6 +14,7 @@ namespace BLL
|
||||
{
|
||||
public static Model.TokenItem GetCNCECToken()
|
||||
{
|
||||
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
|
||||
string CNCECPath = SysConstSetService.CNCECPath;
|
||||
|
||||
string baseurl = CNCECPath + "/api/Common/GetToken";
|
||||
@@ -42,6 +43,7 @@ namespace BLL
|
||||
}
|
||||
public static Model.ReturnData PushCNCEC(string JsonBody,string apiurl)
|
||||
{
|
||||
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
|
||||
Model.ReturnData responeData = new Model.ReturnData();
|
||||
string CNCECPath = SysConstSetService.CNCECPath;
|
||||
if (string.IsNullOrEmpty(CNCECPath))
|
||||
@@ -72,6 +74,7 @@ namespace BLL
|
||||
}
|
||||
public static Model.TokenItem GetToken()
|
||||
{
|
||||
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
|
||||
Model.TokenItem tokenItem = new Model.TokenItem();
|
||||
tokenItem.Token = BLL.SysConstSetService.CNCECToken;
|
||||
tokenItem.ExpiryTime = BLL.SysConstSetService.CNCECTTokenExTime;
|
||||
|
||||
Reference in New Issue
Block a user