Authored by 郝肖肖

isApp 获取方式

... ... @@ -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)) {
... ...
... ... @@ -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);
}
... ...
... ... @@ -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访问时通过频道参数判断性别
... ...