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
e2bc003c
Commit
e2bc003c
authored
Nov 18, 2024
by
席世权
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报错之后不需要再次进入消息队列
parent
558e431b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
ProcessTaskBLL.cs
PushInfo.Core/BLL/ProcessTaskBLL.cs
+8
-8
No files found.
PushInfo.Core/BLL/ProcessTaskBLL.cs
View file @
e2bc003c
...
...
@@ -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
)
{
...
...
@@ -637,14 +637,14 @@ namespace PushInfo.Core.BLL
LogHelper
.
Debug
(
ex
.
Message
);
}
if
(
result
.
Result
!=
1
&&
result
.
code
==
1
)
TaskIntoMq
(
mapProPush
,
data
,
DateTime
.
Now
.
AddSeconds
(
10
));
//
TaskIntoMq(mapProPush, data, DateTime.Now.AddSeconds(10));
Console
.
WriteLine
(
mapProPush
.
Push_Title
+
":"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
}
}
catch
(
Exception
ex
)
{
LogHelper
.
Debug
(
ex
.
Message
);
TaskIntoMq
(
JsonHelper
.
ToObject
<
Map_Project_Push
>(
msg
.
MsgData
),
JsonHelper
.
ToObject
<
DataMessage
>(
msg
.
MsgSecondData
),
DateTime
.
Now
.
AddSeconds
(
10
));
//
TaskIntoMq(JsonHelper.ToObject<Map_Project_Push>(msg.MsgData), JsonHelper.ToObject<DataMessage>(msg.MsgSecondData), DateTime.Now.AddSeconds(10));
}
});
}
...
...
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