Recharge.php 799 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. *
  4. * @copyright ©2020 点小铺
  5. * @author hanj
  6. * @link: https://dyuit.com
  7. * Created by VSCode
  8. */
  9. namespace app\store\controller\user;
  10. use app\store\controller\Controller;
  11. use app\store\model\recharge\Order as OrderModel;
  12. /**
  13. * 余额记录
  14. * Class Recharge
  15. * @package app\store\controller\user
  16. */
  17. class Recharge extends Controller
  18. {
  19. /**
  20. * 充值记录
  21. * @return mixed
  22. * @throws \think\exception\DbException
  23. */
  24. public function order()
  25. {
  26. $model = new OrderModel;
  27. return $this->fetch('order', [
  28. // 充值记录列表
  29. 'list' => $model->getList($this->request->param()),
  30. // 属性集
  31. 'attributes' => $model::getAttributes(),
  32. ]);
  33. }
  34. }