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