|
|
|
@ -2,6 +2,8 @@ |
|
|
|
|
|
|
|
namespace App\Services\Device; |
|
|
|
|
|
|
|
use JetBrains\PhpStorm\ArrayShape; |
|
|
|
|
|
|
|
class CameraDeviceService extends BaseService |
|
|
|
{ |
|
|
|
|
|
|
|
@ -108,7 +110,10 @@ class CameraDeviceService extends BaseService |
|
|
|
} |
|
|
|
|
|
|
|
// 抓拍车位车牌及现场图片 |
|
|
|
public function getTrafficMNPR($channels_id = 1) |
|
|
|
#[ArrayShape([ |
|
|
|
'licensePlate' => "mixed|string", |
|
|
|
'images_data' => "mixed|string" |
|
|
|
])] public function getTrafficMNPR(int $channels_id = 1): array |
|
|
|
{ |
|
|
|
$url = $this->getUrl($this->TRAFFIC_MNPR . $channels_id); |
|
|
|
$response = $this->getHttp($url); |
|
|
|
|