...
|
...
|
@@ -20,6 +20,7 @@ use Hood\Session; |
|
|
use WebPlugin\Mobile;
|
|
|
use Api\Yohobuy;
|
|
|
use LibModels\Web\Passport\LoginData;
|
|
|
use LibModels\Web\Home\IndexData;
|
|
|
use WebPlugin\UdpLog;
|
|
|
use WebPlugin\Encryption;
|
|
|
|
...
|
...
|
@@ -564,15 +565,24 @@ class WebAction extends Controller_Abstract |
|
|
else {
|
|
|
$channel = \Index\HomeModel::getSwitchChannel();
|
|
|
}
|
|
|
|
|
|
$apiDomain = $this->getApiDomain();
|
|
|
$header = array(
|
|
|
'navbars' => \Index\HomeModel::getNavBars($channel),
|
|
|
'hotSearch' => '',
|
|
|
'gobytype' => 'gobuy' . $channel,
|
|
|
'searchcate' => 'searchcate' . $channel,
|
|
|
'header' => true,
|
|
|
'apiDomain' => $apiDomain,
|
|
|
'sysUserSession'=> '',
|
|
|
);
|
|
|
|
|
|
$terms = IndexData::getHotSearchData();
|
|
|
|
|
|
if(!empty($terms['data'])) {
|
|
|
$header['hotSearch'] = isset($terms['data']['hotTerms'][0]['content']) ? $terms['data']['hotTerms'][0]['content'] : '';
|
|
|
}
|
|
|
|
|
|
//同步session
|
|
|
if(!empty($uid) && $sysUserSession < 20) {
|
|
|
$header['sysUserSession'] = Helpers::syncUserSession($uid);
|
...
|
...
|
|