Wxapp.php 896 B

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