去掉控制器方法的后缀名
This commit is contained in:
@@ -20,7 +20,7 @@ class MaterialController extends DefaultController
|
||||
{
|
||||
public $permission = ['detail', 'dialog', 'store', 'archive', 'download'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
// 客户权限
|
||||
$region = regionCustomer('customer_id_customer');
|
||||
@@ -101,7 +101,7 @@ class MaterialController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function detailAction()
|
||||
public function detail()
|
||||
{
|
||||
$search = search_form([
|
||||
'status' => '',
|
||||
@@ -167,7 +167,7 @@ class MaterialController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function dialogAction()
|
||||
public function dialog()
|
||||
{
|
||||
$user = auth()->user();
|
||||
|
||||
@@ -186,7 +186,7 @@ class MaterialController extends DefaultController
|
||||
return $this->json($rows, true);
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
$id = Request::get('id');
|
||||
$row = Material::with('promotion')
|
||||
@@ -215,7 +215,7 @@ class MaterialController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function auditAction()
|
||||
public function audit()
|
||||
{
|
||||
$id = (array)Request::get('id');
|
||||
$status = Request::get('status');
|
||||
@@ -231,7 +231,7 @@ class MaterialController extends DefaultController
|
||||
return $this->json('操作成功。', true);
|
||||
}
|
||||
|
||||
public function archiveAction()
|
||||
public function archive()
|
||||
{
|
||||
$id = (array)Request::get('id');
|
||||
|
||||
@@ -256,7 +256,7 @@ class MaterialController extends DefaultController
|
||||
return $this->json('', true);
|
||||
}
|
||||
|
||||
public function downloadAction()
|
||||
public function download()
|
||||
{
|
||||
$sn = Request::get('sn');
|
||||
if(empty($sn)) {
|
||||
@@ -265,7 +265,7 @@ class MaterialController extends DefaultController
|
||||
return response()->download(upload_path('promotion/material/archive.zip'), $sn.'_'.date('Y-m-d').'.zip');
|
||||
}
|
||||
|
||||
public function storeAction()
|
||||
public function store()
|
||||
{
|
||||
// 上传文件
|
||||
if (Request::method() == 'POST') {
|
||||
@@ -320,7 +320,7 @@ class MaterialController extends DefaultController
|
||||
}
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$var1 = (array)Request::get('id');
|
||||
|
||||
@@ -19,7 +19,7 @@ class PromotionController extends WorkflowController
|
||||
{
|
||||
public $permission = ['dialog', 'serviceSaleOrder', 'useCount', 'product'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
// 客户权限
|
||||
$region = regionCustomer('customer_id_customer');
|
||||
@@ -109,7 +109,7 @@ class PromotionController extends WorkflowController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int) Request::get('id');
|
||||
$header['action'] = $action;
|
||||
@@ -136,22 +136,22 @@ class PromotionController extends WorkflowController
|
||||
], $tpl);
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function auditAction()
|
||||
public function audit()
|
||||
{
|
||||
return $this->createAction('audit');
|
||||
return $this->create('audit');
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
public function printAction()
|
||||
public function print()
|
||||
{
|
||||
$id = (int) Request::get('id');
|
||||
$template_id = (int) Request::get('template_id');
|
||||
@@ -168,7 +168,7 @@ class PromotionController extends WorkflowController
|
||||
}
|
||||
|
||||
// 赠品促销参照到订单
|
||||
public function serviceSaleOrderAction()
|
||||
public function serviceSaleOrder()
|
||||
{
|
||||
$search = search_form(
|
||||
['advanced' => ''], [
|
||||
@@ -320,7 +320,7 @@ class PromotionController extends WorkflowController
|
||||
}
|
||||
|
||||
// 产品明细
|
||||
public function productAction()
|
||||
public function product()
|
||||
{
|
||||
$query = Request::all();
|
||||
if (Request::method() == 'POST') {
|
||||
@@ -334,7 +334,7 @@ class PromotionController extends WorkflowController
|
||||
return $this->render(['query' => $query]);
|
||||
}
|
||||
|
||||
public function closeAction()
|
||||
public function close()
|
||||
{
|
||||
$gets = Request::all();
|
||||
if (Request::method() == 'POST') {
|
||||
@@ -347,7 +347,7 @@ class PromotionController extends WorkflowController
|
||||
}
|
||||
|
||||
// 可用列表
|
||||
public function useCountAction()
|
||||
public function useCount()
|
||||
{
|
||||
$customer_id = Request::get('customer_id');
|
||||
|
||||
@@ -359,7 +359,7 @@ class PromotionController extends WorkflowController
|
||||
return $this->json($count, true);
|
||||
}
|
||||
|
||||
public function dialogAction()
|
||||
public function dialog()
|
||||
{
|
||||
$search = search_form(
|
||||
['advanced' => ''], [
|
||||
@@ -474,7 +474,7 @@ class PromotionController extends WorkflowController
|
||||
}
|
||||
|
||||
// 批量编辑
|
||||
public function batchEditAction()
|
||||
public function batchEdit()
|
||||
{
|
||||
$gets = Request::all();
|
||||
if (Request::method() == 'POST') {
|
||||
@@ -494,7 +494,7 @@ class PromotionController extends WorkflowController
|
||||
]);
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -16,7 +16,7 @@ class ReviewController extends WorkflowController
|
||||
{
|
||||
public $permission = ['dialog', 'reference', 'useCount', 'feeDetail'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
// 客户权限
|
||||
$region = regionCustomer('customer_id_customer');
|
||||
@@ -79,7 +79,7 @@ class ReviewController extends WorkflowController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
|
||||
@@ -103,29 +103,29 @@ class ReviewController extends WorkflowController
|
||||
], $tpl);
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function auditAction()
|
||||
public function audit()
|
||||
{
|
||||
return $this->createAction('audit');
|
||||
return $this->create('audit');
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
public function printAction()
|
||||
public function print()
|
||||
{
|
||||
$this->layout = 'layouts.print2';
|
||||
print_prince($this->createAction('print'));
|
||||
print_prince($this->create('print'));
|
||||
}
|
||||
|
||||
// 批量编辑
|
||||
public function batchEditAction()
|
||||
public function batchEdit()
|
||||
{
|
||||
$gets = Request::all();
|
||||
if (Request::method() == 'POST') {
|
||||
@@ -146,7 +146,7 @@ class ReviewController extends WorkflowController
|
||||
}
|
||||
|
||||
// 兑现明细
|
||||
public function feeDetailAction()
|
||||
public function feeDetail()
|
||||
{
|
||||
$query = Request::all();
|
||||
if (Request::method() == 'POST') {
|
||||
@@ -156,7 +156,7 @@ class ReviewController extends WorkflowController
|
||||
return $this->render(['query' => $query]);
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
Reference in New Issue
Block a user