<?php
|
|
namespace app\operations\controller\plus\vip;
|
|
use app\operations\controller\Controller;
|
use app\operations\model\plus\vip\Cash as VipCashModel;
|
use app\common\model\plus\vip\User as VipUserModel;
|
|
/**
|
* VIP专区提现管理
|
*/
|
class Cash extends Controller
|
{
|
/**
|
* 提现列表
|
*/
|
public function index()
|
{
|
$model = new VipCashModel;
|
$list = $model->getList($this->postData());
|
return $this->renderSuccess('', compact('list'));
|
}
|
|
/**
|
* 提现审核
|
*/
|
public function audit()
|
{
|
$id = $this->request->param('id');
|
$model = VipCashModel::detail($id);
|
if ($model->submit($this->postData())) {
|
return $this->renderSuccess('操作成功');
|
}
|
return $this->renderError($model->getError() ?: '操作失败');
|
}
|
/**
|
* 确认打款
|
*/
|
public function money($id)
|
{
|
$model = VipCashModel::detail($id);
|
|
if ($model->money()) {
|
return $this->renderSuccess('操作成功');
|
}
|
return $this->renderError($model->getError() ?: '操作失败');
|
}
|
}
|