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
a1c75636
Commit
a1c75636
authored
Apr 10, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
00548711
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
14 deletions
+19
-14
xgg-admin/app/base/service/impl/order/orderSve.js
+19
-14
No files found.
xgg-admin/app/base/service/impl/order/orderSve.js
View file @
a1c75636
...
@@ -34,23 +34,26 @@ class OrderService extends ServiceBase {
...
@@ -34,23 +34,26 @@ class OrderService extends ServiceBase {
}
}
async
handleStatus
(
params
)
{
async
handleStatus
(
params
)
{
let
rs
=
await
this
.
callms
(
"order"
,
"handleStatus"
,
params
);
// let rs = await this.callms("order", "handleStatus", params);
if
(
rs
&&
rs
.
status
===
0
)
{
// if(rs && rs.status === 0) {
this
.
pushOrderInfo
(
params
);
// this.pushOrderInfo(params);
}
// }
return
rs
;
// return rs;
await
this
.
pushOrderInfo
(
params
);
return
system
.
getResult
(
"ok"
);
}
}
async
pushOrderInfo
(
params
)
{
async
pushOrderInfo
(
params
)
{
let
order
=
await
this
.
callms
(
"order"
,
"orderInfo"
,
params
)
||
{};
order
=
order
.
data
;
if
(
!
order
)
{
return
;
}
if
(
!
order
.
saas_deliver_api
)
{
return
;
}
if
(
params
.
status
==
1190
)
{
if
(
params
.
status
==
1190
)
{
let
order
=
await
this
.
callms
(
"order"
,
"orderInfo"
,
params
)
||
{};
order
=
order
.
data
;
if
(
!
order
)
{
return
;
}
if
(
!
order
.
saas_deliver_api
)
{
return
;
}
let
data
=
{
let
data
=
{
source_no
:
order
.
source_no
,
source_no
:
order
.
source_no
,
status
:
order
.
status
,
status
:
order
.
status
,
...
@@ -71,11 +74,13 @@ class OrderService extends ServiceBase {
...
@@ -71,11 +74,13 @@ class OrderService extends ServiceBase {
if
(
!
obusinessmen
.
saas_deliver_api
)
{
if
(
!
obusinessmen
.
saas_deliver_api
)
{
return
;
return
;
}
}
axios
({
obusinessmen
.
status
=
"2000000"
;
let
a
=
await
axios
({
method
:
'post'
,
method
:
'post'
,
url
:
obusinessmen
.
saas_deliver_api
,
url
:
obusinessmen
.
saas_deliver_api
,
data
:
obusinessmen
data
:
obusinessmen
});
});
console
.
log
(
a
)
}
}
}
}
...
...
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