Order.php 746 B

123456789101112131415161718192021222324252627282930313233343536
  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\recharge;
  10. use app\api\controller\Controller;
  11. use app\api\model\recharge\Order as OrderModel;
  12. /**
  13. * 充值记录
  14. * Class Order
  15. * @package app\api\controller\user\balance
  16. */
  17. class Order extends Controller
  18. {
  19. /**
  20. * 我的充值记录列表
  21. * @return array
  22. * @throws \app\common\exception\BaseException
  23. * @throws \think\exception\DbException
  24. */
  25. public function lists()
  26. {
  27. $user = $this->getUser();
  28. $list = (new OrderModel)->getList($user['user_id']);
  29. return $this->renderSuccess(compact('list'));
  30. }
  31. }