master
ELF 5 years ago
parent fe97fb561a
commit 74fb7a431c

@ -24,6 +24,7 @@ class IndexController extends HomeController
//系统首页 //系统首页
public function index() public function index()
{ {
var_dump($_SESSION);
$map['game_status'] = 1; $map['game_status'] = 1;
$map['recommend_status'] = 1; $map['recommend_status'] = 1;
$rec_data = M('Game', "tab_")->where($map)->group('relation_game_id')->order('id DESC')->limit(36)->select(); $rec_data = M('Game', "tab_")->where($map)->group('relation_game_id')->order('id DESC')->limit(36)->select();

@ -1224,7 +1224,6 @@ function data_to_xml($data, $item='item', $id='id') {
* @return mixed * @return mixed
*/ */
function session($name='',$value='') { function session($name='',$value='') {
var_dump($name, $value);
$prefix = C('SESSION_PREFIX'); $prefix = C('SESSION_PREFIX');
if(is_array($name)) { // session初始化 在session_start 之前调用 if(is_array($name)) { // session初始化 在session_start 之前调用
if(isset($name['prefix'])) C('SESSION_PREFIX',$name['prefix']); if(isset($name['prefix'])) C('SESSION_PREFIX',$name['prefix']);

Loading…
Cancel
Save