This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop/source/application/api/controller/recharge/Order.php

28 lines
602 B
PHP
Raw Normal View History

2020-04-25 22:20:29 +08:00
<?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'));
}
}