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
郝肖肖
9 years ago
Commit
cac9055cd884b557f9f244b271c2ebb4366d1413
1 parent
6fa89d26
brand_id 未返回变量判断
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
library/WebPlugin/HelperSearch.php
yohobuy/www.yohobuy.com/application/models/Product/Search.php
library/WebPlugin/HelperSearch.php
View file @
cac9055
...
...
@@ -1446,9 +1446,14 @@ class HelperSearch
public static function shop(
$shop
,
$shopSort
)
{
$shopEntry
= array();
if (self::
$total
== 0
|| empty(
$shopSort
)
) {
if (self::
$total
== 0) {
return
$shopEntry
;
}
if (empty(
$shopSort
)) {
$shopSort
= array();
}
$shop['shop_id']
= empty(
$shop['shop_id']
) ? '' :
$shop['shop_id']
;
$url
= Helpers::url('', array('shopId' =>
$shop['shop_id']
),
$shop['brand_domain']
);
...
...
yohobuy/www.yohobuy.com/application/models/Product/Search.php
View file @
cac9055
...
...
@@ -241,10 +241,13 @@ class SearchModel
if
(
!
empty
(
$shopsByBrands
[
'data'
])
&&
is_array
(
$shopsByBrands
[
'data'
]))
{
//多品店 店铺入口
foreach
(
$shopsByBrands
[
'data'
]
as
$val
)
{
$shopSort
=
SearchData
::
getClassesData
(
array
(
'brand'
=>
$val
[
'brand_id'
]));
if
(
isset
(
$shopSort
[
'code'
])
&&
$shopSort
[
'code'
]
==
200
)
{
$data
[
'shopData'
][]
=
array
(
'shop'
=>
$val
,
'shopSort'
=>
$shopSort
[
'data'
][
'sort'
]);
if
(
isset
(
$val
[
'brand_id'
]))
{
$shopSort
=
SearchData
::
getClassesData
(
array
(
'brand'
=>
$val
[
'brand_id'
]));
}
$data
[
'shopData'
][]
=
array
(
'shop'
=>
$val
,
'shopSort'
=>
empty
(
$shopSort
[
'data'
][
'sort'
])
?
array
()
:
$shopSort
[
'data'
][
'sort'
]
);
}
}
else
{
//品牌入口
...
...
Please
register
or
login
to post a comment