Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
周少峰
9 years ago
Commit
92d1444d80d60ca61083ed5a1d714d49a29a2ebc
1 parent
e0a3bc1f
delete shopping cart goods model
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
yohobuy/www.yohobuy.com/application/controllers/Common.php
yohobuy/www.yohobuy.com/application/models/Shopping/Cart.php
yohobuy/www.yohobuy.com/application/controllers/Common.php
View file @
92d1444
...
...
@@ -331,7 +331,7 @@ class CommonController extends WebAction
if
(
isset
(
$result
[
'code'
])
&&
$result
[
'code'
]
==
200
&&
isset
(
$result
[
'total_goods_num'
]))
{
$this
->
helpJsonCallbackResult
(
$callback
,
200
,
$result
[
'message'
],
array
(
'total_goods_num'
=>
$result
[
'total_goods_num'
]));
}
else
{
$this
->
helpJsonCallbackResult
(
$callback
,
$result
[
'code'
],
$result
[
'message'
]
,
''
);
$this
->
helpJsonCallbackResult
(
$callback
,
$result
[
'code'
],
$result
[
'message'
]);
}
}
...
...
yohobuy/www.yohobuy.com/application/models/Shopping/Cart.php
View file @
92d1444
...
...
@@ -279,6 +279,9 @@ class CartModel
if
(
$remove
&&
isset
(
$remove
[
'code'
]))
{
$result
[
'code'
]
=
$remove
[
'code'
];
$result
[
'message'
]
=
$remove
[
'message'
];
if
(
isset
(
$remove
[
'data'
][
'goods_count'
]))
{
$result
[
'total_goods_num'
]
=
$remove
[
'data'
][
'goods_count'
];
}
}
}
while
(
false
);
...
...
Please
register
or
login
to post a comment