|
@@ -717,12 +717,12 @@ class HaiKangController extends BaseController
|
|
|
|
|
|
//宁煤通过海康接口获取首桢图片
|
|
//宁煤通过海康接口获取首桢图片
|
|
public function getPictureByHk($query){
|
|
public function getPictureByHk($query){
|
|
- $url = $this->artemis.'/apiideo1/manualCapture';
|
|
|
|
|
|
+ $url = $this->artemis.'/api/video1/manualCapture';
|
|
$params['cameraIndexCode'] = $query->index_code;
|
|
$params['cameraIndexCode'] = $query->index_code;
|
|
$this->sign = $this->get_sign($url);
|
|
$this->sign = $this->get_sign($url);
|
|
$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($picture['data']['picUrl']){
|
|
|
|
|
|
+ if(isset($picture['data']['picUrl'])){
|
|
if (!is_dir('/www/wwwrootideo.nxjiewei.com/public/' . CameraEnum::M3U8_FILE_PATH.'/img/' )) {
|
|
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);
|
|
mkdir('/www/wwwrootideo.nxjiewei.com/public/' . CameraEnum::M3U8_FILE_PATH.'/img/', 0777, true);
|
|
}
|
|
}
|