Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
c7c4ff1a
Commit
c7c4ff1a
authored
Jun 11, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
c3318ec5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
brg-queue-center/app/config/settings.js
+2
-2
brg-queue-center/readme.txt
+6
-6
No files found.
brg-queue-center/app/config/settings.js
View file @
c7c4ff1a
...
...
@@ -9,7 +9,7 @@ var ENVINPUT = {
REDIS_PWD
:
process
.
env
.
REDIS_PWD
,
REDIS_DB
:
process
.
env
.
TASK_REDIS_DB
,
DB_NAME
:
process
.
env
.
TASK_DB_NAME
,
APP_ENV
:
process
.
env
.
APP_ENV
?
process
.
env
.
APP_ENV
:
"
dev
"
,
//运行环境
APP_ENV
:
process
.
env
.
APP_ENV
?
process
.
env
.
APP_ENV
:
"
test
"
,
//运行环境
CONSUMER_NAME
:
process
.
env
.
CONSUMER_NAME
||
"publicLogs.publicLogsConsumer"
,
//消费者名称
QUEUED_NAME
:
process
.
env
.
QUEUED_NAME
||
"LOGS-SYTXPUBLIC-MSGQ"
,
//队列名称,FAIL-失败队列(队列和失败队列一对存在进行部署)
};
...
...
@@ -18,7 +18,7 @@ var settings = {
consumerName
:
ENVINPUT
.
CONSUMER_NAME
,
queuedName
:
ENVINPUT
.
QUEUED_NAME
,
basepath
:
path
.
normalize
(
path
.
join
(
__dirname
,
'../..'
)),
port
:
process
.
env
.
NODE_PORT
||
808
6
,
port
:
process
.
env
.
NODE_PORT
||
808
1
,
redis
:
function
()
{
if
(
this
.
env
==
"dev"
||
this
.
env
==
"test"
)
{
var
localsettings
=
require
(
"./localsettings"
);
...
...
brg-queue-center/readme.txt
View file @
c7c4ff1a
...
...
@@ -17,15 +17,15 @@
二.公共队列接口
1.生产业务数据供消费者消费
地址:http://
192.168.1.189:4016
/api/queueAction/producer/springBoard
地址:http://
60.205.209.94:4018
/api/queueAction/producer/springBoard
请求方式:post
参数:
{
"actionType": "produceData",// Y 功能名称
"actionBody": {
"pushUrl": "http://
192.168.1.189:4012/api/test/testApi
/springBoard",// Y 推送地址
"pushUrl": "http://
60.205.209.94:4012/web/auth/channelAccessAuth
/springBoard",// Y 推送地址
"actionType": "test",// Y 推送地址接收时的功能名称
"notifyUrl": "",// N 推送成功后通知的Url
"notifyUrl": "
http://60.205.209.94:4012/web/auth/channelAccessAuth/springBoard
",// N 推送成功后通知的Url
"identifyCode": "tx-test01",// Y 操作的业务标识
"messageBody": { // Y 推送的业务消息,必须有一项对象属性值
"name":"张三",
...
...
@@ -33,7 +33,7 @@
}
}
}
1.(1) 推送地址:http://
192.168.1.189:4012/api/test/testApi
/springBoard
1.(1) 推送地址:http://
60.205.209.94:4012/web/auth/channelAccessAuth
/springBoard
参数:
{
"actionType": "test",// Y 功能名称
...
...
@@ -50,7 +50,7 @@
msg: "测试成功",
data: null//业务处理返回
}
1.(2) 有推送成功后通知的Url地址:http://
192.168.1.189:4012/api/test/testApi
/springBoard (举例)
1.(2) 有推送成功后通知的Url地址:http://
60.205.209.94:4012/web/auth/channelAccessAuth
/springBoard (举例)
参数:
{
"actionType": "test",// Y 功能名称
...
...
@@ -76,7 +76,7 @@
}
2.生产日志数据供消费者消费
地址:http://
192.168.1.189:4017
/api/queueAction/producer/springBoard
地址:http://
60.205.209.94:4019
/api/queueAction/producer/springBoard
请求方式:post
参数:
{
...
...
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