brand.php 817 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * 品牌获取
  4. */
  5. defined('InShopNC') or exit('Access Invalid!');
  6. require_once(BASE_ROOT_PATH . '/helper/brand_helper.php');
  7. class brandControl extends mobileHomeControl
  8. {
  9. public function __construct() {
  10. parent::__construct();
  11. }
  12. public function homeOp()
  13. {
  14. $brands = brand_helper::instance()->brandex();
  15. $blocks = [];
  16. $blocks[] = $brands['block'];
  17. return self::outsuccess(array("special_list" => $blocks,'mobile_page' => mobile_page(1)));
  18. }
  19. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  20. public function indexOp()
  21. {
  22. $brands = brand_helper::brands();
  23. return self::outsuccess(array("brands" => $brands));
  24. }
  25. }