Selaa lähdekoodia

硬盘录像机首帧图片

任敬轩 3 vuotta sitten
vanhempi
commit
8e440622e3
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Modules/Camera/Services/CameraServices.php

+ 1 - 1
Modules/Camera/Services/CameraServices.php

@@ -450,7 +450,7 @@ class CameraServices
 
             if ($file_exists && $ts_exists) {
                 //先修改已生成目录用户组
-                exec("chown -R www:www " . public_path() . '/' . CameraEnum::M3U8_FILE_PATH . $path);
+                exec("sudo chown -R www:www " . public_path() . '/' . CameraEnum::M3U8_FILE_PATH . $path);
                 //查询是否存在封面图
                 if (!$cover_picture) {
                     //获取第一帧作为封面图