|
@@ -38,8 +38,8 @@ class Appindex extends Api
|
|
{
|
|
{
|
|
$where['status']=1;
|
|
$where['status']=1;
|
|
$where['showType']=array('egt',1);
|
|
$where['showType']=array('egt',1);
|
|
- $where['showType']=array('elt',7);
|
|
|
|
- $data=Db::name('appindex')->where($where)->select();
|
|
|
|
|
|
+ $wheres['showType']=array('elt',7);
|
|
|
|
+ $data=Db::name('appindex')->where($where)->where($wheres)->select();
|
|
$new =array();
|
|
$new =array();
|
|
foreach ($data as $k=> $v){
|
|
foreach ($data as $k=> $v){
|
|
$new[$k]=$this->doHandle($v);
|
|
$new[$k]=$this->doHandle($v);
|