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
Rock Zhang
9 years ago
Commit
a770b4e0e3c8d47207541b599d54e5b8a8cf751b
1 parent
f65f833a
修复收藏的品牌或者商品,在获取后面页数接口没返回时会出现无数据提示的bug
Code Review By Rock Zhang
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
yohobuy/m.yohobuy.com/application/models/Index/User.php
yohobuy/m.yohobuy.com/application/models/Index/User.php
View file @
a770b4e
...
...
@@ -201,7 +201,7 @@ class UserModel
$datas
[]
=
$product
;
}
!
empty
(
$datas
)
&&
$result
[
'hasFavProduct'
]
=
$datas
;
}
else
if
(
$page
>
1
&&
isset
(
$favProduct
[
'code'
])
&&
$favProduct
[
'code'
]
===
500
)
{
}
else
if
(
$page
>
1
&&
(
!
$favProduct
||
(
isset
(
$favProduct
[
'code'
])
&&
$favProduct
[
'code'
]
===
500
))
)
{
$result
[
'end'
]
=
true
;
}
...
...
@@ -259,7 +259,7 @@ class UserModel
$datas
[]
=
$brand
;
}
!
empty
(
$datas
)
&&
$result
[
'hasFavBrand'
]
=
$datas
;
}
else
if
(
$page
>
1
&&
isset
(
$favBrand
[
'code'
])
&&
$favBrand
[
'code'
]
===
500
)
{
}
else
if
(
$page
>
1
&&
(
!
$favBrand
||
(
isset
(
$favBrand
[
'code'
])
&&
$favBrand
[
'code'
]
===
500
))
)
{
$result
[
'end'
]
=
true
;
}
...
...
Please
register
or
login
to post a comment