...
|
...
|
@@ -36,8 +36,10 @@ class Index extends Api |
|
|
|
|
|
//1.查询摄像头接口
|
|
|
public function getCamera(){
|
|
|
$url=$this->cameraurl."/api/reservoir/hkws/Hardware/getListByReservoir";
|
|
|
$info =HttpHelper::get($url);
|
|
|
$id= $this->request->param('id',"");
|
|
|
$url=$this->cameraurl."/api/reservoir/hkws/Hardware/getListBywaterworks";
|
|
|
$data=['waterworks_id'=>$id];
|
|
|
$info =HttpHelper::get($url,$data);
|
|
|
$info = json_decode($info, true);
|
|
|
if($info['data']){
|
|
|
return $this->success("返回成功",$info);
|
...
|
...
|
@@ -210,11 +212,17 @@ class Index extends Api |
|
|
}
|
|
|
|
|
|
//获取水厂列表
|
|
|
public function test(){
|
|
|
public function insInstalledList(){
|
|
|
$pageSize= $this->request->param('pageSize',"");
|
|
|
$pageNo= $this->request->param('pageNo',"");
|
|
|
$user=new User();
|
|
|
$token=$user->uimsApitoken();
|
|
|
$url="http://121.37.218.20:9011/data_api/v1/insListAll";
|
|
|
$res =HttpHelper::getheader($url,"","",$token);
|
|
|
$url="http://121.37.218.20:9011/data_api/v1/insInstalledList";
|
|
|
$data=[
|
|
|
"pageSize"=>$pageSize,
|
|
|
"pageNo"=>$pageNo,
|
|
|
];
|
|
|
$res =HttpHelper::postheader($url,$data,"",$token);
|
|
|
$res=json_decode($res,true);
|
|
|
return $this->success($res['message'],$res['data']);
|
|
|
}
|
...
|
...
|
|