Wxapp.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | 萤火商城系统 [ 致力于通过产品和服务,帮助商家高效化开拓市场 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2017~2021 https://www.yiovo.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed 这不是一个自由软件,不允许对程序代码以任何形式任何目的的再发行
  8. // +----------------------------------------------------------------------
  9. // | Author: 萤火科技 <admin@yiovo.com>
  10. // +----------------------------------------------------------------------
  11. declare (strict_types = 1);
  12. namespace app\api\controller;
  13. use app\api\model\Help;
  14. /**
  15. * 微信小程序
  16. * Class Wxapp
  17. * @package app\api\controller
  18. */
  19. class Wxapp extends Controller
  20. {
  21. /**
  22. * 小程序基础信息
  23. * @return array
  24. */
  25. public function base()
  26. {
  27. return $this->renderSuccess([]);
  28. }
  29. /**
  30. * 帮助中心
  31. * @return array
  32. * @throws \think\db\exception\DataNotFoundException
  33. * @throws \think\db\exception\DbException
  34. * @throws \think\db\exception\ModelNotFoundException
  35. */
  36. public function help()
  37. {
  38. $model = new Help;
  39. $list = $model->getList();
  40. return $this->renderSuccess(compact('list'));
  41. }
  42. }