DeviceController.php 937 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\plugins\adopt\controllers\client;
  8. use app\plugins\adopt\controllers\BaseController;
  9. use app\plugins\adopt\models\client\DeviceForm;
  10. class DeviceController extends BaseController
  11. {
  12. /**
  13. * 获取监控列表
  14. * @return array
  15. */
  16. public function actionIndex(){
  17. $form = new DeviceForm();
  18. $form->cat_id = get_params('cat_id',0);
  19. $form->page = get_params('page',1);
  20. $form->store_id = get_store_id();
  21. $result = $form->search();
  22. return $result;
  23. }
  24. public function actionPlay(){
  25. $form = new DeviceForm();
  26. $form->store_id = get_store_id();
  27. $form->device_id = get_params('device_id');
  28. $result = $form->getPlayUrl();
  29. return $result;
  30. }
  31. }