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
3dbf6230
Commit
3dbf6230
authored
Oct 14, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix
parent
6f895476
Pipeline
#14848
passed with stage
in 52 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
common.js
app/service/credit/common.js
+1
-0
order.js
app/service/credit/order.js
+1
-1
No files found.
app/service/credit/common.js
View file @
3dbf6230
...
...
@@ -214,6 +214,7 @@ class CommonService extends Service {
await
ctx
.
prometheusModel
.
CreditPay
.
edit
({
where
:
{
id
:
pay_info
.
id
},
params
:
{
pay_result
:
JSON
.
stringify
(
result
),
transaction_id
:
sign_data
.
transaction_id
,
status
:
1
}
});
await
ctx
.
service
.
credit
.
order
.
logOrder
(
order
.
id
);
await
ctx
.
prometheusModel
.
CreditOrder
.
update
({
state
:
'已支付'
,
state_time
:
state_time
,
pay_status
:
1
},
{
where
:
{
id
:
order
.
id
}
});
await
ctx
.
service
.
credit
.
order
.
updateOrderStateToCancel
(
order
);
//更新其他同姓名和身份证号的订单状态
return
true
;
}
}
...
...
app/service/credit/order.js
View file @
3dbf6230
...
...
@@ -337,7 +337,7 @@ class OrderService extends Service {
client_ip
:
ctx
.
helper
.
getClientIP
(),
};
await
this
.
addCreditPay
(
pay_data
);
//添加下单记录
await
this
.
updateOrderStateToCancel
(
order
);
//更新其他同姓名和身份证号的订单状态
//
await this.updateOrderStateToCancel(order);//更新其他同姓名和身份证号的订单状态
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