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
90b482140757353011155556996bb07b7652cc58
1 parent
fb0bf608
isApp 获取方式
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Index.php
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Info.php
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Plusstar.php
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Index.php
View file @
90b4821
...
...
@@ -131,7 +131,7 @@ class IndexController extends AbstractAction
$channel
=
$this
->
get
(
'yh_channel'
);
// 标识是不是APP客户端
$isApp
=
is_numeric
(
$channel
);
$isApp
=
$this
->
isApp
(
);
// APP访问时通过频道参数判断性别
if
(
$isApp
)
{
switch
(
intval
(
$channel
))
{
...
...
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Info.php
View file @
90b4821
...
...
@@ -31,12 +31,12 @@ class InfoController extends AbstractAction
$data
[
'guang'
][
'id'
]
=
$id
;
// 标识是不是APP访问的
$isApp
=
null
!==
$this
->
get
(
'app_version'
,
null
);
$isApp
=
$this
->
isApp
(
);
// 标识是否是微信访问
$isWeixin
=
stripos
(
$this
->
server
(
'HTTP_USER_AGENT'
,
''
),
'MicroMessenger'
)
!==
false
;
// WAP上设置头部导航
if
(
!
$isApp
&&
!
$isWeixin
)
{
if
(
!
$isApp
||
!
$isWeixin
)
{
$this
->
setNavHeader
(
'逛'
,
true
,
SITE_MAIN
);
}
...
...
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Plusstar.php
View file @
90b4821
...
...
@@ -84,7 +84,7 @@ class PlusstarController extends AbstractAction
$channel
=
$this
->
get
(
'yh_channel'
);
// 标识是不是APP客户端
$isApp
=
is_numeric
(
$channel
);
$isApp
=
$this
->
isApp
(
);
// 标识是否是微信访问
$isWeixin
=
stripos
(
$this
->
server
(
'HTTP_USER_AGENT'
,
''
),
'MicroMessenger'
)
!==
false
;
// APP访问时通过频道参数判断性别
...
...
Please
register
or
login
to post a comment