|
|
|
@ -15,6 +15,7 @@ class IndexController extends FrontendController { |
|
|
|
*/ |
|
|
|
public function actionIndex() |
|
|
|
{ |
|
|
|
|
|
|
|
$this->init_params(); |
|
|
|
//是否开启wap |
|
|
|
if(!$GLOBALS['_CFG']['wap_config']){ |
|
|
|
@ -23,6 +24,7 @@ class IndexController extends FrontendController { |
|
|
|
if(I('app')){ |
|
|
|
$_SESSION['openid']=I('app'); |
|
|
|
} |
|
|
|
var_dump($_SESSION['openid']); |
|
|
|
$this->assign('cart_number', cart_number());//购物车数量 |
|
|
|
$this->assign('hot_click', get_hot_click());// 获取热门搜索 |
|
|
|
$this->assign('store', get_store());// 获取店铺 |
|
|
|
|