소스 검색

靓号首页接口

lizhen_gitee 1 년 전
부모
커밋
cca2092e8d
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      application/api/controller/Uidsale.php

+ 7 - 1
application/api/controller/Uidsale.php

@@ -42,7 +42,13 @@ class Uidsale extends Api
             }
         }
 
-        $this->success(1,$typelist);
+        //因为上面用了unset,数组有了键,前端不显示,重组一个新数组
+        $result = [];
+        foreach($typelist as $key => $val){
+            $result[] = $val;
+        }
+
+        $this->success(1,$result);
     }