Commit 1f4ece3f authored by 席世权's avatar 席世权

完善正式请求协议问题

parent e2bc003c
......@@ -5,6 +5,7 @@ using PushPlatform.Common.Model;
using PushPlatform.Common.Util;
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
namespace PushInfo.Core.BLL
......@@ -35,6 +36,7 @@ namespace PushInfo.Core.BLL
result.Result = 1;
try
{
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Ssl3 | System.Net.SecurityProtocolType.Tls | System.Net.SecurityProtocolType.Tls11 | System.Net.SecurityProtocolType.Tls12;
if (!string.IsNullOrWhiteSpace(intent))
intent = ProcessAndroidIntent(intent, extras);
......
......@@ -12,6 +12,8 @@ namespace PushTask.exe
{
static void Main(string[] args)
{
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Ssl3 | System.Net.SecurityProtocolType.Tls | System.Net.SecurityProtocolType.Tls11 | System.Net.SecurityProtocolType.Tls12;
MqBLL mqBll = new MqBLL();
mqBll.ReleaseTaskMq();
Console.WriteLine("任务消息队列:【服务启动】");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment