Product.php 695 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. namespace app\home\controller;
  3. use think\Lang;
  4. use think\Cache;
  5. use think\Request;
  6. use think\Controller;
  7. use think\Validate;
  8. /**
  9. * 主页管理类
  10. */
  11. class Product extends Common
  12. {
  13. /**
  14. * 构造函数
  15. *
  16. * @access public
  17. */
  18. public function __construct()
  19. {
  20. parent::__construct();
  21. }
  22. /**
  23. * 产品与服务
  24. *
  25. * @access public
  26. * @return array JsonString
  27. */
  28. public function product()
  29. {
  30. return $this->fetch();
  31. }
  32. /**
  33. * 产品与服务详情
  34. *
  35. * @access public
  36. * @return array JsonString
  37. */
  38. public function details()
  39. {
  40. return $this->fetch();
  41. }
  42. }