作者 郭文星

123

@@ -36,8 +36,10 @@ class Index extends Api @@ -36,8 +36,10 @@ class Index extends Api
36 36
37 //1.查询摄像头接口 37 //1.查询摄像头接口
38 public function getCamera(){ 38 public function getCamera(){
39 - $url=$this->cameraurl."/api/reservoir/hkws/Hardware/getListByReservoir";  
40 - $info =HttpHelper::get($url); 39 + $id= $this->request->param('id',"");
  40 + $url=$this->cameraurl."/api/reservoir/hkws/Hardware/getListBywaterworks";
  41 + $data=['waterworks_id'=>$id];
  42 + $info =HttpHelper::get($url,$data);
41 $info = json_decode($info, true); 43 $info = json_decode($info, true);
42 if($info['data']){ 44 if($info['data']){
43 return $this->success("返回成功",$info); 45 return $this->success("返回成功",$info);
@@ -210,11 +212,17 @@ class Index extends Api @@ -210,11 +212,17 @@ class Index extends Api
210 } 212 }
211 213
212 //获取水厂列表 214 //获取水厂列表
213 - public function test(){ 215 + public function insInstalledList(){
  216 + $pageSize= $this->request->param('pageSize',"");
  217 + $pageNo= $this->request->param('pageNo',"");
214 $user=new User(); 218 $user=new User();
215 $token=$user->uimsApitoken(); 219 $token=$user->uimsApitoken();
216 - $url="http://121.37.218.20:9011/data_api/v1/insListAll";  
217 - $res =HttpHelper::getheader($url,"","",$token); 220 + $url="http://121.37.218.20:9011/data_api/v1/insInstalledList";
  221 + $data=[
  222 + "pageSize"=>$pageSize,
  223 + "pageNo"=>$pageNo,
  224 + ];
  225 + $res =HttpHelper::postheader($url,$data,"",$token);
218 $res=json_decode($res,true); 226 $res=json_decode($res,true);
219 return $this->success($res['message'],$res['data']); 227 return $this->success($res['message'],$res['data']);
220 } 228 }