Authored by hf

code review by hf: do format web code to remove no needs code

... ... @@ -465,14 +465,14 @@ class WebAction extends Controller_Abstract
*/
protected function setWebNavHeader($channel = '')
{
if(empty($channel)) {
$channel = \Index\HomeModel::getSwitchChannel();
}
else {//设置频道
\Index\HomeModel::setSwitchToCookie($channel);
}
// if(empty($channel)) {
// $channel = \Index\HomeModel::getSwitchChannel();
// }
// else {//设置频道
// \Index\HomeModel::setSwitchToCookie($channel);
// }
$header = array(
'navbars'=>\Index\HomeModel::getNavBars($channel),
'navbars'=> \Index\HomeModel::getNavBars($channel),
'gobytype'=> 'gobuy'.$channel,
'searchcate'=>'searchcate'.$channel,
'myyoho' => array(
... ...
... ... @@ -115,7 +115,7 @@ class HomeModel
return $menu;
}
/**
/**
* 选择频道
*
* @return void
... ...