tp3.2以数组的形式存入session
正确做法 $home = array( 'id'=>$res['id'], 'name'=>$res['name'], 'type'=>$res['type']); session('home',$home);//id 错...
正确做法 $home = array( 'id'=>$res['id'], 'name'=>$res['name'], 'type'=>$res['type']); session('home',$home);//id 错...