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
2114bfb9438956a50ce387faa6bb9cc816a5d6b3
1 parent
1fe2fe43
app shopid first
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Index.php
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Index.php
View file @
2114bfb
...
...
@@ -125,6 +125,12 @@ class IndexController extends AbstractAction
*/
public
function
brandAction
()
{
//如果是app,可直接获取shopId
$appShopId
=
$this
->
get
(
'shop_id'
);
if
(
!
empty
(
$appShopId
))
{
$this
->
shop
(
$appShopId
);
exit
;
}
/* 品牌域名参数 @see Bootstrap.php */
$domain
=
$this
->
param
(
'named'
);
if
(
empty
(
$domain
))
{
...
...
@@ -134,12 +140,6 @@ class IndexController extends AbstractAction
$uid
=
$this
->
getUid
();
// 存标题信息
$title
=
''
;
//TODO 如果是app,可直接获取shopId
$appShopId
=
$this
->
get
(
'shop_id'
);
if
(
$this
->
isApp
()
&&
!
empty
(
$appShopId
))
{
$this
->
shop
(
$appShopId
);
exit
;
}
$brandLogo
=
Product\ListModel
::
getBrandLogoByDomain
(
$domain
,
$title
);
//TODO 无店铺:0--->品牌页 无单品店有多品店:1--->搜索页 有单品店:2--->店铺页面
//TODO 通过品牌域名获取店铺shopId 先固定shopId = 672
...
...
Please
register
or
login
to post a comment