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
Email Patches
Plain Diff
Browse Files
Authored by
OF1706
8 years ago
Commit
4bc83f6da4ed3d44e4516f17f251a30feb8e811e
1 parent
e2cb5bbc
mini dev node new
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
apps/cart/controllers/cart.js
apps/cart/models/cart-api.js
apps/cart/models/cart-service.js
apps/cart/controllers/cart.js
View file @
4bc83f6
...
...
@@ -112,7 +112,7 @@ const delCartGoods = (req, res, next) => {
let
callback
=
req
.
query
.
callback
;
let
skuList
=
{};
skuList
[
productSku
]
=
parseInt
(
buyNumber
);
skuList
[
productSku
]
=
parseInt
(
buyNumber
);
//eslint-disable-line
service
.
removeFromCart
(
uid
,
shoppingKey
,
JSON
.
stringify
(
skuList
))
.
then
(
ret
=>
{
...
...
apps/cart/models/cart-api.js
View file @
4bc83f6
...
...
@@ -105,7 +105,7 @@ const selectGoods = (uid, sku, shoppingKey /* , hasPromotion*/) => {
* @param bool $hasPromotion 是否有促销ID
* @return array 接口返回的数据
*/
const
removeFromCart
=
(
uid
,
shoppingKey
,
skuList
,
hasPromotion
)
=>
{
const
removeFromCart
=
(
uid
,
shoppingKey
,
skuList
,
hasPromotion
)
=>
{
let
param
=
{
method
:
hasPromotion
?
'app.Shopping.removeAndQryCart'
:
'app.Shopping.remove'
,
...
...
apps/cart/models/cart-service.js
View file @
4bc83f6
...
...
@@ -594,7 +594,7 @@ const removeFromCart = (uid, shoppingKey, skuList, hasPromotion, cartDelList) =>
let
ret
=
yield
cartApi
.
removeFromCart
(
uid
,
shoppingKey
,
skuList
,
hasPromotion
);
if
(
!
hasPromotion
)
{
if
(
!
hasPromotion
)
{
return
ret
;
}
...
...
Please
register
or
login
to post a comment