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
013932c3
Commit
013932c3
authored
Jul 04, 2020
by
王勇飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-manage' of gitlab.gongsibao.com:jiangyong/zhichan into center-manage
parents
2d2680b3
977d646c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
3 deletions
+52
-3
center-manage/app/base/controller/ctl.base.js
+19
-0
center-manage/app/base/controller/impl/msg/msgCtl.js
+1
-1
center-manage/app/base/system.js
+32
-2
No files found.
center-manage/app/base/controller/ctl.base.js
View file @
013932c3
...
@@ -50,6 +50,7 @@ class CtlBase {
...
@@ -50,6 +50,7 @@ class CtlBase {
credid
:
req
.
headers
[
"x-credential-identifier"
],
credid
:
req
.
headers
[
"x-credential-identifier"
],
regrole
:
req
.
headers
[
"xregrole"
],
regrole
:
req
.
headers
[
"xregrole"
],
bizpath
:
req
.
headers
[
"xbizpath"
],
bizpath
:
req
.
headers
[
"xbizpath"
],
codetitle
:
req
.
headers
[
"codetitle"
],
}
}
if
(
!
req
.
xctx
.
appkey
){
if
(
!
req
.
xctx
.
appkey
){
return
[
-
200
,
"请求头缺少应用x-app-key"
]
return
[
-
200
,
"请求头缺少应用x-app-key"
]
...
@@ -104,3 +105,20 @@ class CtlBase {
...
@@ -104,3 +105,20 @@ class CtlBase {
}
}
}
}
module
.
exports
=
CtlBase
;
module
.
exports
=
CtlBase
;
/*
地址:http://192.168.1.128:401/api/queueAction/producer/springBoard
请求方式:post
参数:
{
"actionType": "produceLogsData",// Y 功能名称
"actionBody": {
"opTitle": "",// N 操作的业务标题
"identifyCode": "logs001",// Y 操作的业务标识
"messageBody": {//日志的描述信息
"opUrl": "http://192.168.1.189:4012/api/test/testApi/springBoard",// N 操作的业务Url
"message": ""// Y 日志消息描述
}
}
}
logs-sytxpublic-msgq-service--日志服务
*/
\ No newline at end of file
center-manage/app/base/controller/impl/msg/msgCtl.js
View file @
013932c3
...
@@ -31,7 +31,7 @@ class MsgCtl extends CtlBase {
...
@@ -31,7 +31,7 @@ class MsgCtl extends CtlBase {
if
(
!
pobj
.
content
)
{
if
(
!
pobj
.
content
)
{
return
system
.
getResult
(
null
,
"content can not be empty,100290"
);
return
system
.
getResult
(
null
,
"content can not be empty,100290"
);
}
}
if
(
!
pobj
.
sender
||
!
pobj
.
sender_id
)
{
if
(
!
pobj
.
sender
||
(
pobj
.
sender_id
!==
0
&&
!
pobj
.
sender_id
)
)
{
return
system
.
getResult
(
null
,
"发送者信息 can not be empty,100290"
);
return
system
.
getResult
(
null
,
"发送者信息 can not be empty,100290"
);
}
}
if
(
pobj
.
jump_address
&&
!
pobj
.
app_key
)
{
if
(
pobj
.
jump_address
&&
!
pobj
.
app_key
)
{
...
...
center-manage/app/base/system.js
View file @
013932c3
...
@@ -321,4 +321,34 @@ module.exports = System;
...
@@ -321,4 +321,34 @@ module.exports = System;
// }catch(e){
// }catch(e){
// console.log(e);
// console.log(e);
// }
// }
// })()
// })()
\ No newline at end of file
/*
地址:http://192.168.1.128:401/api/queueAction/producer/springBoard
请求方式:post
参数:
{
"actionType": "produceLogsData",// Y 功能名称
"actionBody": {
"opTitle": "",// N 操作的业务标题
"identifyCode": "logs001",// Y 操作的业务标识
"messageBody": {//日志的描述信息
"opUrl": "http://192.168.1.189:4012/api/test/testApi/springBoard",// N 操作的业务Url
"message": ""// Y 日志消息描述
}
}
}
logs-sytxpublic-msgq-service--日志服务
*/
// let obj= {
// "actionType": "produceLogsData",// Y 功能名称
// "actionBody": {
// "opTitle": "",// N 操作的业务标题
// "identifyCode": "logs001",// Y 操作的业务标识
// "messageBody": {//日志的描述信息
// "opUrl": "http://192.168.1.189:4012/api/test/testApi/springBoard",// N 操作的业务Url
// "message": ""// Y 日志消息描述
// }
// }
// }
// System.postJsonTypeReq("http://192.168.1.128:401/api/queueAction/producer/springBoard",)
\ No newline at end of file
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