<?php
|
|
namespace app\api\controller\plus\operations;
|
|
use app\api\controller\Controller;
|
use app\api\model\plus\operations\Setting;
|
use app\api\model\plus\operations\User as OperationsUserModel;
|
use app\api\model\plus\operations\Order as OrderModel;
|
|
/**
|
* 运营中心订单
|
*/
|
class Order extends Controller
|
{
|
// 当前用户
|
private $user;
|
// 运营中心用户信息
|
private $Operations;
|
// 运营中心设置
|
private $setting;
|
|
/**
|
* 构造方法
|
*/
|
public function initialize()
|
{
|
// 用户信息
|
$this->user = $this->getUser();
|
// 运营中心用户信息
|
$this->Operations = OperationsUserModel::detail($this->user['user_id']);
|
// 运营中心设置
|
$this->setting = Setting::getAll();
|
}
|
|
/**
|
* 运营中心订单列表
|
*/
|
public function lists($settled = -1)
|
{
|
$model = new OrderModel;
|
return $this->renderSuccess('', [
|
// 提现明细列表
|
'list' => $model->getList($this->user['user_id'], (int)$settled),
|
// 页面文字
|
'words' => $this->setting['words']['values'],
|
]);
|
}
|
|
}
|