任敬轩 1 месяц назад
Родитель
Сommit
97e4e9eb80
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Modules/Camera/Http/Controllers/Api/HaiKangController.php

+ 1 - 1
Modules/Camera/Http/Controllers/Api/HaiKangController.php

@@ -311,7 +311,7 @@ class HaiKangController extends BaseController
 //        $params['regionIndexCode'] = $request->input('regionIndexCode');
         $params['cameraIndexCode'] = Input::get('cameraIndexCode');
         $params['streamType']      = $streamType;  //0主码流 1子码流 2第三码流
-        if($type != ''){
+        if($type == 'pc'){
             $params['protocol']        = 'ws';
         }else{
             $params['protocol']        = 'wss';