Balance.php 657 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace app\store\controller\user;
  3. use app\store\controller\Controller;
  4. use app\store\model\user\BalanceLog as BalanceLogModel;
  5. /**
  6. * 余额明细
  7. * Class Balance
  8. * @package app\store\controller\user
  9. */
  10. class Balance extends Controller
  11. {
  12. /**
  13. * 余额明细
  14. * @return mixed
  15. * @throws \think\exception\DbException
  16. */
  17. public function log()
  18. {
  19. $model = new BalanceLogModel;
  20. return $this->fetch('log', [
  21. // 充值记录列表
  22. 'list' => $model->getList($this->request->param()),
  23. // 属性集
  24. 'attributes' => $model::getAttributes(),
  25. ]);
  26. }
  27. }