<?php
|
|
namespace app\operations\controller\plus\release;
|
|
use app\operations\controller\Controller;
|
use app\operations\model\plus\release\SupplyApply as ApplyModel;
|
|
/**
|
* 控制器
|
*/
|
class SupplyApply extends Controller
|
{
|
|
/**
|
* 分销商申请列表
|
*/
|
public function index()
|
{
|
$model = new ApplyModel;
|
$apply_list = $model->getList($this->postData());
|
return $this->renderSuccess('', compact('apply_list'));
|
}
|
|
/**
|
* 审核分销商
|
*/
|
public function editApplyStatus($apply_id)
|
{
|
$model = ApplyModel::detail($apply_id);
|
if ($model->submit($this->postData())) {
|
return $this->renderSuccess('修改成功');
|
}
|
return $this->renderError('修改失败');
|
|
}
|
|
|
}
|