Index.php 502 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace app\api\controller\sharing;
  3. use app\api\controller\Controller;
  4. use app\api\model\sharing\Category as CategoryModel;
  5. /**
  6. * 拼团首页控制器
  7. * Class Active
  8. * @package app\api\controller\sharing
  9. */
  10. class Index extends Controller
  11. {
  12. /**
  13. * 拼团首页
  14. * @return array
  15. */
  16. public function index()
  17. {
  18. // 拼团分类列表
  19. $categoryList = CategoryModel::getCacheAll();
  20. return $this->renderSuccess(compact('categoryList'));
  21. }
  22. }