|
@@ -808,10 +808,10 @@ class HaiKangController extends BaseController
|
|
$picture = $this->curlPost($this->pre_url . $url, json_encode($params));
|
|
$picture = $this->curlPost($this->pre_url . $url, json_encode($params));
|
|
$picture = json_decode($picture, true);
|
|
$picture = json_decode($picture, true);
|
|
if(isset($picture['data']['picUrl'])){
|
|
if(isset($picture['data']['picUrl'])){
|
|
- if (!is_dir('/www/wwwrootideo.nxjiewei.com/public/' . CameraEnum::M3U8_FILE_PATH.'/img/' )) {
|
|
|
|
- mkdir('/www/wwwrootideo.nxjiewei.com/public/' . CameraEnum::M3U8_FILE_PATH.'/img/', 0777, true);
|
|
|
|
|
|
+ if (!is_dir('/www/wwwroot/video.nxjiewei.com/public/' . CameraEnum::M3U8_FILE_PATH.'/img/' )) {
|
|
|
|
+ mkdir('/www/wwwroot/video.nxjiewei.com/public/' . CameraEnum::M3U8_FILE_PATH.'/img/', 0777, true);
|
|
}
|
|
}
|
|
- $path = '/www/wwwrootideo.nxjiewei.com/public/' . CameraEnum::M3U8_FILE_PATH.'/img/';
|
|
|
|
|
|
+ $path = '/www/wwwroot/video.nxjiewei.com/public/' . CameraEnum::M3U8_FILE_PATH.'/img/';
|
|
$cms = new CameraServices();
|
|
$cms = new CameraServices();
|
|
$file_name = $cms->downloadFile($picture['data']['picUrl'],$path);
|
|
$file_name = $cms->downloadFile($picture['data']['picUrl'],$path);
|
|
//判断图片是否存在
|
|
//判断图片是否存在
|