20230705集团对接

This commit is contained in:
2023-07-05 10:16:56 +08:00
parent d018784ee2
commit 8d785cef99
3 changed files with 69 additions and 0 deletions
+3
View File
@@ -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;