| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- /**
- *
- * @copyright ©2020 点小铺
- * @author hanj
- * @link: https://dyuit.com
- * Created by VSCode
- */
- namespace app\api\controller\points;
- use app\api\controller\Controller;
- use app\api\model\user\PointsLog as PointsLogModel;
- /**
- * 余额账单明细
- * Class Log
- * @package app\api\controller\balance
- */
- class Log extends Controller
- {
- /**
- * 积分明细列表
- * @return array
- * @throws \app\common\exception\BaseException
- * @throws \think\exception\DbException
- */
- public function index()
- {
- $user = $this->getUser();
- $list = (new PointsLogModel)->getList($user['user_id']);
- return $this->renderSuccess(compact('list'));
- }
- }
|