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
7d855de578bca115e991372395978093e6a00c2f
1 parent
8811349e
shop data dynamic
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Index.php
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Index.php
View file @
7d855de
...
...
@@ -127,7 +127,8 @@ class IndexController extends AbstractAction
{
/* 品牌域名参数 @see Bootstrap.php */
$domain
=
$this
->
param
(
'named'
);
$domain
=
'andybrier'
;
// $domain = 'andybrier';
echo
$domain
;
exit
;
if
(
empty
(
$domain
))
{
$this
->
go
(
SITE_MAIN
);
}
...
...
@@ -143,8 +144,8 @@ class IndexController extends AbstractAction
$brandLogo
=
Product\ListModel
::
getBrandLogoByDomain
(
$domain
,
$title
);
//TODO 无店铺:0--->品牌页 无单品店有多品店:1--->搜索页 有单品店:2--->店铺页面
//TODO 通过品牌域名获取店铺shopId 先固定shopId = 672
$brandLogo
[
'shopId'
]
=
672
;
$brandLogo
[
'type'
]
=
2
;
// $brandLogo['shopId'] = 672;
// $brandLogo['type'] = 2;
if
(
$brandLogo
[
'type'
]
==
2
&&
!
empty
(
$brandLogo
[
'shopId'
]))
{
$this
->
shop
(
$brandLogo
[
'shopId'
],
$uid
);
exit
;
...
...
Please
register
or
login
to post a comment