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
2d6a2c89
Commit
2d6a2c89
authored
Aug 27, 2020
by
王勇飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-manage' of gitlab.gongsibao.com:jiangyong/zhichan into center-manage
parents
b99d5958
06934179
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
0 deletions
+60
-0
center-manage/app/base/service/impl/common/channelhandlers/tx.js
+60
-0
No files found.
center-manage/app/base/service/impl/common/channelhandlers/tx.js
View file @
2d6a2c89
...
@@ -617,7 +617,67 @@ class TxHandler {
...
@@ -617,7 +617,67 @@ class TxHandler {
"data"
:
null
"data"
:
null
}
}
}
}
<<<<<<<
HEAD
// 服务状态变更通知
async
ServiceStatusNotify
(
datajson
)
{
try
{
let
rc
=
system
.
getObject
(
"util.execClient"
);
let
requrl
=
this
.
queueUrl
;
let
ab
=
Object
.
assign
({},
datajson
);
ab
.
status
=
ab
.
status
===
6
?
"inserivice"
:
"closed"
;
let
params
=
{
"actionType"
:
"produceData"
,
"actionBody"
:
{
"pushUrl"
:
this
.
icUrl
+
"/deliverybillCtl/notifyServiceStatusChange"
,
"actionType"
:
"notifyServiceStatusChange"
,
"identifyCode"
:
"book-manage"
,
"messageBody"
:
ab
,
"headData"
:
{
'Authorization'
:
'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1OTg0MzQ2ODcsImlzcyI6InJFRVN6TU5ZUlM2RnBWNnZlY09vdExPNWdPcUNXSmFQIiwiaWF0IjoxNTk4NDMxMDg3fQ.isQ40HqHHfJ-rTsUQOhRIdu4XCitZU-AfzeqSH4kPbQ'
,
'XAPPKEY'
:
'f6b59b74-f943-4735-bb86-e05d6b7fd78e'
}
}
};
let
rtn
=
await
rc
.
execPost
(
params
,
requrl
);
let
j
=
JSON
.
parse
(
rtn
.
stdout
);
if
(
j
.
status
===
1
)
{
return
this
.
getResult
(
datajson
.
requestId
);
}
else
{
return
this
.
getResult
(
datajson
.
requestId
,
rtn
.
stderr
);
}
}
catch
(
err
)
{
return
this
.
getResult
(
datajson
.
requestId
,
err
);
}
}
async
getResult
(
reqId
,
err
=
"not err"
)
{
if
(
err
===
"not err"
)
{
return
{
"requestId"
:
reqId
,
"success"
:
true
,
"errorCode"
:
0
,
"errorMsg"
:
"ok"
,
"data"
:
null
}
}
else
{
return
{
"requestId"
:
reqId
,
"success"
:
false
,
"errorCode"
:
-
1
,
"errorMsg"
:
err
,
"data"
:
null
}
}
}
=======
}
}
>>>>>>>
6
b34408d8443a74a5b97aaf995d52251e3124d04
}
}
module
.
exports
=
new
TxHandler
();
module
.
exports
=
new
TxHandler
();
...
...
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