Log.php 599 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\api\controller\points;
  3. use app\api\controller\Controller;
  4. use app\api\model\user\PointsLog as PointsLogModel;
  5. /**
  6. * 余额账单明细
  7. * Class Log
  8. * @package app\api\controller\balance
  9. */
  10. class Log extends Controller
  11. {
  12. /**
  13. * 积分明细列表
  14. * @return array
  15. * @throws \app\common\exception\BaseException
  16. * @throws \think\exception\DbException
  17. */
  18. public function index()
  19. {
  20. $user = $this->getUser();
  21. $list = (new PointsLogModel)->getList($user['user_id']);
  22. return $this->renderSuccess(compact('list'));
  23. }
  24. }