Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
陈峰
7 years ago
Commit
58fdadcba3a377e6ed480dfb011f061b080a5c16
2 parents
0140bcb2
f4eece20
Merge branch 'hotfix/ensureLint' into 'master'
fix eslint See merge request
!261
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
apps/cart/models/order-ensure.js
apps/cart/models/order-ensure.js
View file @
58fdadc
...
...
@@ -71,7 +71,7 @@ module.exports = class extends global.yoho.BaseModel {
// 订单计算
compute
(
uid
,
cartType
,
pa
)
{
if
(
pa
.
couponCode
)
{
pa
.
couponCode
=
[...
new
Set
(
_
.
compact
(
_
.
split
(
pa
.
couponCode
,
','
)))].
join
(
','
);
pa
.
couponCode
=
[...
new
Set
(
_
.
compact
(
_
.
split
(
pa
.
couponCode
,
','
)))].
join
(
','
);
}
return
new
EnsureApi
(
this
.
ctx
).
getOrderComputeAsync
(
...
...
@@ -133,7 +133,7 @@ module.exports = class extends global.yoho.BaseModel {
// 订单提交
submit
(
uid
,
cartType
,
p
,
remoteIp
)
{
if
(
p
.
couponCode
)
{
p
.
couponCode
=
[...
new
Set
(
_
.
compact
(
_
.
split
(
p
.
couponCode
,
','
)))].
join
(
','
);
p
.
couponCode
=
[...
new
Set
(
_
.
compact
(
_
.
split
(
p
.
couponCode
,
','
)))].
join
(
','
);
}
return
new
EnsureApi
(
this
.
ctx
).
orderSubmitAsync
(
uid
,
cartType
,
p
.
addressId
,
p
.
deliveryTime
,
...
...
Please
register
or
login
to post a comment