Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ashermed_old_push
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
backend
ashermed_old_push
Commits
558e431b
Commit
558e431b
authored
Oct 29, 2024
by
张盛懿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
极光推送证书问题
parent
6868fc54
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
JiguangPushMessage.cs
PushInfo.Core/BLL/JiguangPushMessage.cs
+6
-0
ProcessTaskBLL.cs
PushInfo.Core/BLL/ProcessTaskBLL.cs
+6
-6
Global.asax.cs
PushPlatform.Background/Global.asax.cs
+2
-0
No files found.
PushInfo.Core/BLL/JiguangPushMessage.cs
View file @
558e431b
...
@@ -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
);
...
...
PushInfo.Core/BLL/ProcessTaskBLL.cs
View file @
558e431b
...
@@ -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
)
{
{
...
...
PushPlatform.Background/Global.asax.cs
View file @
558e431b
...
@@ -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
;
}
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment