PtCpController.php 603 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace ghs\controllers;
  3. use bizGhs\cp\classes\PtCpClass;
  4. use common\components\util;
  5. use Yii;
  6. class PtCpController extends BaseController
  7. {
  8. //根据分类id取集合,带分页 ssh 20231228
  9. public function actionList()
  10. {
  11. $get = Yii::$app->request->get();
  12. $classId = $get['classId'] ?? 0;
  13. $where = [];
  14. $where['delStatus'] = 0;
  15. if (!empty($classId)) {
  16. $where['classId'] = $classId;
  17. }
  18. $mainId = $this->mainId;
  19. $respond = PtCpClass::getPtCpList($where, $mainId);
  20. util::success($respond);
  21. }
  22. }