28 lines
602 B
PHP
28 lines
602 B
PHP
<?php
|
|
|
|
namespace app\api\controller\recharge;
|
|
|
|
use app\api\controller\Controller;
|
|
use app\api\model\recharge\Order as OrderModel;
|
|
|
|
/**
|
|
* 充值记录
|
|
* Class Order
|
|
* @package app\api\controller\user\balance
|
|
*/
|
|
class Order extends Controller
|
|
{
|
|
/**
|
|
* 我的充值记录列表
|
|
* @return array
|
|
* @throws \app\common\exception\BaseException
|
|
* @throws \think\exception\DbException
|
|
*/
|
|
public function lists()
|
|
{
|
|
$user = $this->getUser();
|
|
$list = (new OrderModel)->getList($user['user_id']);
|
|
return $this->renderSuccess(compact('list'));
|
|
}
|
|
|
|
} |