Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
陈峰
8 years ago
Commit
1505ef6aad2c2eb2d6be20ae47505c6ca4fccf93
2 parents
7ac4041c
db5f1d5e
Merge branch 'feature/cart' into 'release/5.4.1'
支付宝支付CODE See merge request
!314
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
apps/cart/models/pay.js
apps/cart/models/pay.js
View file @
1505ef6
...
...
@@ -20,9 +20,8 @@ const logger = global.yoho.logger;
// 支付方式
const
payments
=
{
alipay
:
33
,
wechat
:
22
,
alibank
:
42
alipay
:
18
,
wechat
:
22
};
// 资源位
...
...
@@ -215,7 +214,9 @@ const procOrderData = (payResult, uid, sessionKey) => {
}
if
(
_
.
round
(
parseFloat
(
amount
),
2
)
!==
_
.
round
(
parseFloat
(
payResult
.
totalFee
),
2
))
{
logger
.
warn
(
'front pay success but the amount is not same.'
,
{
payResult
:
payResult
,
order
:
order
});
logger
.
warn
(
'front pay success but the amount is not same.'
,
{
payResult
:
payResult
,
order
:
order
});
return
{
code
:
415
,
message
:
'支付金额与订单金额不一致,订单状态更新失败!'
...
...
Please
register
or
login
to post a comment