forked from qmpaas/leadshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TabcountController.php
47 lines (39 loc) · 1.03 KB
/
TabcountController.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* 商品列表切换栏下对应数量统计
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace leadmall\app;
use leadmall\Map;
use basics\app\BasicsController as BasicsModules;
use Yii;
class TabcountController extends BasicsModules implements Map
{
public $modules = [
'orderevaluate' => [
'module' => 'order',
'controller' => 'evaluate',
],
];
/**
* 重写父类
* @return [type] [description]
*/
public function actions()
{
$actions = parent::actions();
unset($actions['create']);
unset($actions['update']);
return $actions;
}
public function actionCreate()
{
$include = Yii::$app->request->get('include', '');
$module = $this->modules[$include] ?? false;
if (!$module) {
Error('未定义操作');
}
return $this->runModule($module['module'], $module['controller'], "tabcount");
}
}