| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace ghs\controllers;
- use bizGhs\cp\classes\CpClass;
- use common\components\util;
- use Yii;
- class CpController extends BaseController
- {
- //根据分类id取集合,带分页 ssh 20231228
- public function actionList()
- {
- $get = Yii::$app->request->get();
- $classId = $get['classId'] ?? 0;
- $mainId = $this->mainId ?? 0;
- $where = [];
- $where['mainId'] = $mainId;
- $where['delStatus'] = 0;
- if (!empty($classId)) {
- $where['classId'] = $classId;
- }
- $respond = CpClass::getJhList($where);
- util::success($respond);
- }
- //添加产品 ssh 20240106
- public function actionAddCp()
- {
- }
- }
|