Commit 558e431b authored by 张盛懿's avatar 张盛懿

极光推送证书问题

parent 6868fc54
......@@ -74,6 +74,12 @@ namespace PushInfo.Core.BLL
if (response.StatusCode != System.Net.HttpStatusCode.OK)
result.Result = 0;
}
catch (AggregateException ex)
{
LogHelper.Error(ex.InnerException);
result.Result = 0;
result.code = 1;
}
catch (Exception ex)
{
LogHelper.Error(ex);
......
......@@ -596,12 +596,12 @@ namespace PushInfo.Core.BLL
{
try
{
//ConfirmSendTask(mapProPush, data);
if (mapProPush.Push_Style.IndexOf(((int)PushStyle.APP).ToString()) > -1)
MqNameTwo = MqName;
else if (mapProPush.Push_Style.IndexOf(((int)PushStyle.极光App).ToString()) > -1)
MqNameTwo = MqNameUrora;
ActiveMQHelper.CreateMQProducer(MqNameTwo, MQMode.Queue, new DataCenterMessage { ObjectID = "", MsgData = mapProPush.ToJson(), MsgSecondData = data.ToJson() }, sendDate);
ConfirmSendTask(mapProPush, data);
//if (mapProPush.Push_Style.IndexOf(((int)PushStyle.APP).ToString()) > -1)
// MqNameTwo = MqName;
//else if (mapProPush.Push_Style.IndexOf(((int)PushStyle.极光App).ToString()) > -1)
// MqNameTwo = MqNameUrora;
//ActiveMQHelper.CreateMQProducer(MqNameTwo, MQMode.Queue, new DataCenterMessage { ObjectID = "", MsgData = mapProPush.ToJson(), MsgSecondData = data.ToJson() }, sendDate);
}
catch (Exception e)
{
......
......@@ -16,6 +16,8 @@ namespace PushPlatform.Background
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Ssl3 | System.Net.SecurityProtocolType.Tls | System.Net.SecurityProtocolType.Tls11 | System.Net.SecurityProtocolType.Tls12;
}
}
}
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