Index.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace app\api\controller;
  3. use app\common\controller\Api;
  4. /**
  5. * 首页接口
  6. */
  7. class Index extends Api
  8. {
  9. protected $noNeedLogin = [];
  10. protected $noNeedRight = ['*'];
  11. /**
  12. * 首页
  13. *
  14. */
  15. public function index()
  16. {
  17. $user = $this->auth->getUser();
  18. $data = [];
  19. $data['notice'] = '滚动显示的公告信息';
  20. $data['banner_list'] = ['https://dapp-static.oss-cn-shenzhen.aliyuncs.com/jue-jin-lu/3.pnggS02ouwrJfiF65979ec74db73','https://dapp-static.oss-cn-shenzhen.aliyuncs.com/jue-jin-lu/intro.pngkSx1GTBiuFzY65979f0cd34e1'];
  21. $data['balance'] = $user['balance'];
  22. $data['bonus_sum'] = $user['bonus_sum'];
  23. $data['icon_list'] = [
  24. 'https://www.estyzl38.com/static/img/binance.ebc27893.png',
  25. 'https://www.estyzl38.com/static/img/ibank.11f8808d.png',
  26. 'https://www.estyzl38.com/static/img/gate.ef718121.png',
  27. 'https://www.estyzl38.com/static/img/trustwallet.3e39f1f7.png',
  28. 'https://www.estyzl38.com/static/img/gemini.90d29b68.png',
  29. 'https://www.estyzl38.com/static/img/11.png',
  30. 'https://www.estyzl38.com/static/img/metamask.5cc72a6d.png',
  31. 'https://www.estyzl38.com/static/img/22.png',
  32. ];
  33. $this->success(__('请求成功'), $data);
  34. }
  35. }