Wxapp.php 787 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace app\api\controller;
  3. use app\api\model\Wxapp as WxappModel;
  4. use app\api\model\WxappHelp;
  5. /**
  6. * 微信小程序
  7. * Class Wxapp
  8. * @package app\api\controller
  9. */
  10. class Wxapp extends Controller
  11. {
  12. /**
  13. * 小程序基础信息
  14. * @return array
  15. */
  16. public function base()
  17. {
  18. // $wxapp = WxappModel::getWxappCache();
  19. return $this->renderSuccess([]);
  20. }
  21. /**
  22. * 帮助中心
  23. * @return array
  24. * @throws \think\db\exception\DataNotFoundException
  25. * @throws \think\db\exception\ModelNotFoundException
  26. * @throws \think\exception\DbException
  27. */
  28. public function help()
  29. {
  30. $model = new WxappHelp;
  31. $list = $model->getList();
  32. return $this->renderSuccess(compact('list'));
  33. }
  34. }