<?php
|
|
|
|
namespace app\shop\controller\plus\operations;
|
|
|
|
use app\shop\controller\Controller;
|
|
use app\shop\model\plus\operations\Apply as ApplyModel;
|
|
|
|
/**
|
|
* 分销控制器
|
|
*/
|
|
class Apply 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('修改失败');
|
|
|
|
}
|
|
|
|
|
|
}
|