| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace app\api\controller;
- use app\common\controller\Api;
- /**
- * 首页接口
- */
- class Index extends Api
- {
- protected $noNeedLogin = [];
- protected $noNeedRight = ['*'];
- /**
- * 首页
- *
- */
- public function index()
- {
- $user = $this->auth->getUser();
- $data = [];
- $data['notice'] = '滚动显示的公告信息';
- $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'];
- $data['balance'] = $user['balance'];
- $data['bonus_sum'] = $user['bonus_sum'];
- $data['icon_list'] = [
- 'https://www.estyzl38.com/static/img/binance.ebc27893.png',
- 'https://www.estyzl38.com/static/img/ibank.11f8808d.png',
- 'https://www.estyzl38.com/static/img/gate.ef718121.png',
- 'https://www.estyzl38.com/static/img/trustwallet.3e39f1f7.png',
- 'https://www.estyzl38.com/static/img/gemini.90d29b68.png',
- 'https://www.estyzl38.com/static/img/11.png',
- 'https://www.estyzl38.com/static/img/metamask.5cc72a6d.png',
- 'https://www.estyzl38.com/static/img/22.png',
- ];
- $this->success(__('请求成功'), $data);
- }
- }
|