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
4d542c6a
Commit
4d542c6a
authored
May 21, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
8b83d217
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
xgg-saas-platform/app/base/service/impl/saas/orderSve.js
+8
-2
No files found.
xgg-saas-platform/app/base/service/impl/saas/orderSve.js
View file @
4d542c6a
...
...
@@ -37,8 +37,10 @@ class OrderService extends ServiceBase {
* @returns {Promise<{msg: string, data, bizmsg: *|string, status: number}|*|undefined>}
*/
async
audit
(
params
)
{
console
.
log
(
`审核参数`
+
JSON
.
stringify
(
params
));
var
rs
=
await
this
.
callms
(
"order"
,
"saasOrderBulkAudit"
,
params
);
console
.
log
(
`审核结果
${
rs
}
`
);
console
.
log
(
JSON
.
stringify
(
rs
));
if
(
params
.
audit_status
==
"20"
&&
rs
.
status
===
0
&&
params
.
ids
&&
params
.
ids
.
length
>
0
)
{
for
(
let
id
of
params
.
ids
)
{
this
.
pushOrderToDeliver
(
id
,
params
.
deliver_id
);
...
...
@@ -53,7 +55,10 @@ class OrderService extends ServiceBase {
* @returns {Promise<void>}
*/
async
pushOrderToDeliver
(
id
,
deliver_id
)
{
console
.
log
(
"推送参数 "
+
id
+
"===>"
+
deliver_id
)
let
order
=
await
this
.
callms
(
"order"
,
"saasOrderInfo"
,
{
id
:
id
})
||
{};
console
.
log
(
"查询到的订单"
+
JSON
.
stringify
(
order
));
order
=
order
.
data
;
if
(
!
order
)
{
return
;
...
...
@@ -75,9 +80,10 @@ class OrderService extends ServiceBase {
deliver_id
:
deliver_id
,
price
:
order
.
price
||
0
};
console
.
log
(
"推送订单到交付平台参数"
+
JSON
.
stringify
(
data
))
// 推送订单到交付平台
let
url
=
settings
.
deliverSysApi
().
orderPushApi
;
console
.
log
(
"推送订单到交付平台URL"
+
url
)
let
res
=
await
axios
({
method
:
'post'
,
url
:
url
,
...
...
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