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

极光推送证书问题

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