浏览代码

靓号首页接口

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