Browse Source

测试小程序支付

master
lixiaoyu 3 years ago
parent
commit
6753fe6b5b
  1. 2
      mobile/source/apps/site/controllers/IndexController.php

2
mobile/source/apps/site/controllers/IndexController.php

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

Loading…
Cancel
Save