Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
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
e3ca42f95c3707c74d9d407839041ea2f99148d2
1 parent
a821e5ae
search brand
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
library/Plugin/DataProcess/ShopProcess.php
library/Plugin/DataProcess/ShopProcess.php
View file @
e3ca42f
...
...
@@ -120,6 +120,7 @@ class ShopProcess
*/
private
static
function
brandBrowse
(
$data
)
{
$brandId
=
''
;
$brandNumber
=
count
(
$data
);
//少于2个不展示
if
(
$brandNumber
<
2
)
{
...
...
@@ -129,6 +130,7 @@ class ShopProcess
if
(
empty
(
$val
[
'brandDomain'
]))
{
continue
;
}
$brandId
.=
','
.
$val
[
'id'
];
$appSuffix
=
'openby:yohobuy={"action":"go.brand","params":{"shop_id":"'
.
self
::
$shopId
.
'","brand_id":"'
.
$val
[
'id'
]
.
'"}}'
;
$brand
[
'url'
]
=
Helpers
::
url
(
''
,
''
,
$val
[
'brandDomain'
]);
if
(
!
empty
(
self
::
$appVersion
))
{
...
...
@@ -142,6 +144,7 @@ class ShopProcess
if
(
$brandNumber
>
5
)
{
self
::
$shopData
[
'brandList'
][
'url'
]
=
Helpers
::
url
(
'/product/index/allBrand'
,
array
(
'shop_id'
=>
self
::
$shopId
));
}
self
::
$shopData
[
'brand'
]
=
rtrim
(
$brandId
,
','
);
}
/**
...
...
Please
register
or
login
to post a comment