Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
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
黄奎
mall.oytour.com
Commits
24bbb3f6
Commit
24bbb3f6
authored
Oct 24, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息队列处理
parent
f819ff8d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
RabbitKey.cs
Mall.Common/Models/RabbitKey.cs
+4
-0
RabbitKey.cs
Mall.Education/Model/RabbitKey.cs
+5
-0
EducationModule.cs
Mall.Module.Education/EducationModule.cs
+5
-4
No files found.
Mall.Common/Models/RabbitKey.cs
View file @
24bbb3f6
...
...
@@ -17,6 +17,10 @@ namespace Mall.Common.Models
/// 初始化教育消息队列
/// </summary>
public
const
string
QUEEN_GENERATE_EDUCARION
=
"generate_educarion"
;
/// <summary>
/// 初始化教育消息队列(本地)
/// </summary>
public
const
string
QUEEN_GENERATE_EDUCARION_LOCAL
=
"generate_educarion_local"
;
}
}
Mall.Education/Model/RabbitKey.cs
View file @
24bbb3f6
...
...
@@ -18,5 +18,10 @@ namespace Mall.Education.Models
/// </summary>
public
const
string
QUEEN_GENERATE_EDUCARION
=
"generate_educarion"
;
/// <summary>
/// 初始化教育消息队列(测试)
/// </summary>
public
const
string
QUEEN_GENERATE_EDUCARION_LOCAL
=
"generate_educarion_local"
;
}
}
Mall.Module.Education/EducationModule.cs
View file @
24bbb3f6
using
Mall.Common.API
;
using
Mall.Common
;
using
Mall.Common.API
;
using
Mall.Common.Models
;
using
Mall.Common.Plugin
;
using
Mall.Model.Entity.Education
;
...
...
@@ -843,7 +844,7 @@ namespace Mall.Module.Education
Port
=
5672
,
UserName
=
"guest"
,
Password
=
"viitto2019"
,
QueenName
=
RabbitKey
.
QUEEN_GENERATE_EDUCARION
QueenName
=
Config
.
IsNormalServer
==
"1"
?
RabbitKey
.
QUEEN_GENERATE_EDUCARION
:
RabbitKey
.
QUEEN_GENERATE_EDUCARION_LOCAL
},
JsonConvert
.
SerializeObject
(
new
{
GoodsId
=
demodel
.
Id
,
...
...
@@ -899,7 +900,7 @@ namespace Mall.Module.Education
Port
=
5672
,
UserName
=
"guest"
,
Password
=
"viitto2019"
,
QueenName
=
RabbitKey
.
QUEEN_GENERATE_EDUCARION
QueenName
=
Config
.
IsNormalServer
==
"1"
?
RabbitKey
.
QUEEN_GENERATE_EDUCARION
:
RabbitKey
.
QUEEN_GENERATE_EDUCARION_LOCAL
},
JsonConvert
.
SerializeObject
(
new
{
GoodsId
=
demodel
.
Id
,
...
...
@@ -1043,7 +1044,7 @@ namespace Mall.Module.Education
Port
=
5672
,
UserName
=
"guest"
,
Password
=
"viitto2019"
,
QueenName
=
RabbitKey
.
QUEEN_GENERATE_EDUCARION
QueenName
=
Config
.
IsNormalServer
==
"1"
?
RabbitKey
.
QUEEN_GENERATE_EDUCARION
:
RabbitKey
.
QUEEN_GENERATE_EDUCARION_LOCAL
},
JsonConvert
.
SerializeObject
(
new
{
GoodsId
=
Id
,
...
...
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