bianjunhui hace 1 año
padre
commit
18dadc9446
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      application/api/controller/Appindex.php

+ 2 - 2
application/api/controller/Appindex.php

@@ -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);