Balance.php 804 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\user\BalanceLog as BalanceLogModel;
  12. /**
  13. * 余额明细
  14. * Class Balance
  15. * @package app\store\controller\user
  16. */
  17. class Balance extends Controller
  18. {
  19. /**
  20. * 余额明细
  21. * @return mixed
  22. * @throws \think\exception\DbException
  23. */
  24. public function log()
  25. {
  26. $model = new BalanceLogModel;
  27. return $this->fetch('log', [
  28. // 充值记录列表
  29. 'list' => $model->getList($this->request->param()),
  30. // 属性集
  31. 'attributes' => $model::getAttributes(),
  32. ]);
  33. }
  34. }