截流自动化的商城平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Help.php 927B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace app\api\controller;
  3. use app\common\basics\Api;
  4. use app\common\server\JsonServer;
  5. use app\api\logic\HelpLogic;
  6. class Help extends Api
  7. {
  8. public $like_not_need_login = ['category', 'lists', 'detail'];
  9. /**
  10. * 帮助中心分类
  11. */
  12. public function category()
  13. {
  14. $data = HelpLogic::category();
  15. return JsonServer::success('获取成功', $data);
  16. }
  17. /**
  18. * 列表
  19. */
  20. public function lists()
  21. {
  22. $get = $this->request->get();
  23. $get['page_no'] = $this->page_no;
  24. $get['page_size'] = $this->page_size;
  25. $data = HelpLogic::lists($get);
  26. return JsonServer::success('获取成功', $data);
  27. }
  28. /**
  29. * 详情
  30. */
  31. public function detail()
  32. {
  33. $id = $this->request->get('id', '', 'intval');
  34. $data = HelpLogic::detail($id);
  35. return JsonServer::success('获取成功', $data);
  36. }
  37. }