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
055d8b70
Commit
055d8b70
authored
Nov 02, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-order' of gitlab.gongsibao.com:jiangyong/zhichan into center-order
parents
5c4e8847
895b1072
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
center-order/app/base/db/impl/dbcorder/orderinfoDao.js
+1
-0
center-order/app/base/service/impl/common/push360Sve.js
+9
-3
No files found.
center-order/app/base/db/impl/dbcorder/orderinfoDao.js
View file @
055d8b70
...
...
@@ -15,6 +15,7 @@ class OrderInfoDao extends Dao {
"orderNo"
,
"channelServiceNo"
,
"channelOrderNo"
,
"orderServiceNo"
,
"channelUserId"
,
"ownerUserId"
,
"payTime"
,
...
...
center-order/app/base/service/impl/common/push360Sve.js
View file @
055d8b70
...
...
@@ -6,6 +6,7 @@ class Push360Service {
constructor
()
{
this
.
pushlogDao
=
system
.
getObject
(
"db.common.pushlogDao"
);
this
.
ordercontactsDao
=
system
.
getObject
(
"db.dbcorder.ordercontactsDao"
);
this
.
orderinfoDao
=
system
.
getObject
(
"db.dbcorder.orderinfoDao"
);
this
.
push360Url
=
settings
.
push360Url
();
this
.
auth360Url
=
settings
.
auth360Url
();
}
...
...
@@ -16,12 +17,17 @@ class Push360Service {
if
(
actionBody
.
tmStatus
==
"WAITCOMMIT"
||
actionBody
.
tmStatus
==
"ddj"
)
{
status
=
30
;
}
if
(
actionBody
.
tmStatus
==
"ROBOT"
)
{
if
(
actionBody
.
tmStatus
==
"ROBOT"
||
actionBody
.
tmStatus
==
"ROBOTPAY"
)
{
status
=
40
;
}
let
order_id
=
actionBody
.
orderNo
;
try
{
var
rc
=
system
.
getObject
(
"util.execClient"
);
let
orderItem
=
await
this
.
orderinfoDao
.
getItemByOrderNo
(
order_id
);
let
totalNo
=
orderItem
.
orderServiceNo
;
if
(
totalNo
){
order_id
=
totalNo
;
}
let
rtn
=
await
rc
.
exec360GetToken
(
this
.
auth360Url
)
if
(
!
rtn
||
!
rtn
.
stdout
)
{
return
system
.
getResult
(
null
,
"restPost data is empty"
);
...
...
@@ -43,12 +49,12 @@ class Push360Service {
};
if
(
!
result
||
!
result
.
stdout
)
{
logObj
[
"returnType"
]
=
"0"
;
logObj
[
"opTitle"
]
=
"数据推送
ali
返回失败"
;
logObj
[
"opTitle"
]
=
"数据推送
360
返回失败"
;
this
.
pushlogDao
.
create
(
logObj
);
return
system
.
getResultFail
(
-
502
,
"execPost data is empty"
);
}
else
{
logObj
[
"returnType"
]
=
"1"
;
logObj
[
"opTitle"
]
=
"数据推送
ali
返回成功"
;
logObj
[
"opTitle"
]
=
"数据推送
360
返回成功"
;
this
.
pushlogDao
.
create
(
logObj
);
let
stdout
=
JSON
.
parse
(
result
.
stdout
);
return
system
.
getResultSuccess
(
stdout
);
...
...
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