...
|
...
|
@@ -85,6 +85,8 @@ class PlusstarController extends AbstractAction |
|
|
$channel = $this->get('yh_channel');
|
|
|
// 标识是不是APP客户端
|
|
|
$isApp = is_numeric($channel);
|
|
|
// 标识是否是微信访问
|
|
|
$isWeixin = stripos($this->server('HTTP_USER_AGENT', ''), 'MicroMessenger') !== false;
|
|
|
// APP访问时通过频道参数判断性别
|
|
|
if ($isApp) {
|
|
|
switch (intval($channel)) {
|
...
|
...
|
@@ -161,7 +163,7 @@ class PlusstarController extends AbstractAction |
|
|
}
|
|
|
|
|
|
// 设置头部信息
|
|
|
if (!$isApp) {
|
|
|
if (!$isApp && !$isWeixin) {
|
|
|
$this->setNavHeader($data['ps']['name'], true, SITE_MAIN);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -170,7 +172,7 @@ class PlusstarController extends AbstractAction |
|
|
|
|
|
$data['shareLink'] = $defaultUrl;
|
|
|
$data['shareTitle'] = $data['ps']['name'];
|
|
|
$data['shareDesc'] = (mb_strlen($data['ps']['intro'],'utf-8') > 800) ? mb_substr($data['ps']['intro'], 0, 800, 'utf-8') . '...' : $data['ps']['intro'];
|
|
|
$data['shareDesc'] = (mb_strlen($data['ps']['intro'], 'utf-8') > 800) ? mb_substr($data['ps']['intro'], 0, 800, 'utf-8') . '...' : $data['ps']['intro'];
|
|
|
$data['shareImg'] = $data['ps']['logo'];
|
|
|
|
|
|
$brandInfo = array();
|
...
|
...
|
|