12345678910111213141516171819202122232425262728 |
- <?php
- namespace app\api\controller\recharge;
- use app\api\controller\Controller;
- use app\api\model\recharge\Order as OrderModel;
- /**
- * 充值记录
- * Class Order
- * @package app\api\controller\user\balance
- */
- class Order extends Controller
- {
- /**
- * 我的充值记录列表
- * @return array
- * @throws \app\common\exception\BaseException
- * @throws \think\exception\DbException
- */
- public function lists()
- {
- $user = $this->getUser();
- $list = (new OrderModel)->getList($user['user_id']);
- return $this->renderSuccess(compact('list'));
- }
- }
|