Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
e996e8e96c7fde85656895e4e736a0befeb61d18
1 parent
15bf8909
修复异步加载收藏的商品以及收藏的品牌错误的bug
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
yohobuy/m.yohobuy.com/application/models/Index/User.php
yohobuy/m.yohobuy.com/application/models/Index/User.php
View file @
e996e8e
...
...
@@ -172,12 +172,6 @@ class UserModel
// 处理用户收藏的商品数据
if
(
isset
(
$favProduct
[
'data'
])
&&
!
empty
(
$favProduct
[
'data'
][
'product_list'
]))
{
if
(
$page
>
$favProduct
[
'data'
][
'page_total'
])
{
$result
[
'end'
]
=
true
;
return
$result
;
}
$datas
=
array
();
$product
=
array
();
foreach
(
$favProduct
[
'data'
][
'product_list'
]
as
$val
)
{
...
...
@@ -195,6 +189,8 @@ class UserModel
}
!
empty
(
$datas
)
&&
$result
[
'hasFavProduct'
]
=
$datas
;
}
else
if
(
$page
>
1
&&
isset
(
$favProduct
[
'code'
])
&&
$favProduct
[
'code'
]
===
500
){
$result
[
'end'
]
=
true
;
}
return
$result
;
...
...
Please
register
or
login
to post a comment