Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
方斌
51business
Commits
185ad9e5
Commit
185ad9e5
authored
Oct 14, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3dbf6230
Pipeline
#14850
passed with stage
in 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
order.js
app/service/credit/order.js
+2
-1
No files found.
app/service/credit/order.js
View file @
185ad9e5
...
...
@@ -255,6 +255,7 @@ class OrderService extends Service {
const
state_time
=
moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
);
await
this
.
logOrder
(
order
.
id
);
await
ctx
.
prometheusModel
.
CreditOrder
.
update
({
state
:
'已支付'
,
state_time
,
pay_status
:
1
},
{
where
:
{
id
:
order
.
id
,
pay_status
:
0
}
})
await
this
.
updateOrderStateToCancel
(
order
);
//更新其他同姓名和身份证号的订单状态
return
true
;
}
}
...
...
@@ -337,7 +338,7 @@ class OrderService extends Service {
client_ip
:
ctx
.
helper
.
getClientIP
(),
};
await
this
.
addCreditPay
(
pay_data
);
//添加下单记录
// await this.updateOrderStateToCancel(order);//更新其他同姓名和身份证号的订单状态
// await this.updateOrderStateToCancel(order);//更新其他同姓名和身份证号的订单状态
//2019-10-14 14:52:23 移动到支付完成时通知那里
await
this
.
updateOrderPrice
(
order
);
//更新金额
await
this
.
logOrder
(
order
.
id
);
//订单状态变化日志记录
const
state_time
=
moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
);
...
...
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