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
Email Patches
Plain Diff
Browse Files
Authored by
郭成尧
7 years ago
Commit
b09ab550fc79c8a5532b6c7bf7b6b927417f0c14
1 parent
15f26d05
read-from-undefined
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
apps/cart/controllers/buy-now-controller.js
apps/cart/controllers/buy-now-controller.js
View file @
b09ab55
...
...
@@ -172,8 +172,12 @@ class BuyNowController {
use_yoho_coin
:
req
.
body
.
use_yoho_coin
});
result
.
data
.
use_yoho_coin
=
paymentProcess
.
transPrice
(
_
.
get
(
result
,
'data.use_yoho_coin'
));
result
.
data
.
yohoCoinCompute
=
paymentProcess
.
yohoCoinCompute
(
result
.
data
);
let
finalResult
=
_
.
get
(
result
,
'data'
,
{});
if
(
finalResult
)
{
_
.
set
(
finalResult
,
'use_yoho_coin'
,
paymentProcess
.
transPrice
(
_
.
get
(
result
,
'data.use_yoho_coin'
)));
_
.
set
(
finalResult
,
'yohoCoinCompute'
,
paymentProcess
.
yohoCoinCompute
(
result
.
data
));
}
return
res
.
json
(
result
.
data
);
})().
catch
(
next
);
}
...
...
Please
register
or
login
to post a comment