...
|
...
|
@@ -122,7 +122,8 @@ class Index extends Api |
|
|
//-获得设备数据详情
|
|
|
public function eqpData7DayList(){
|
|
|
$id= $this->request->param('id',"");
|
|
|
$token=$this->token;
|
|
|
$user=new User();
|
|
|
$token=$user->uimsApitoken();
|
|
|
$url="https://wq.screen.xp.yn.cn/api/screen_eqp_data/v1/eqpData7DayList";
|
|
|
$data=['wid'=>"$id"];
|
|
|
$res =HttpHelper::postheader($url,$data,"",$token);
|
...
|
...
|
@@ -193,7 +194,7 @@ class Index extends Api |
|
|
return $res;
|
|
|
}
|
|
|
|
|
|
//-获得水表列表
|
|
|
//-获得水表数量
|
|
|
public function getInstrumentcount(){
|
|
|
$user=new User();
|
|
|
$token=$user->uimsApitoken();
|
...
|
...
|
@@ -208,4 +209,13 @@ class Index extends Api |
|
|
}
|
|
|
}
|
|
|
|
|
|
//获取水厂列表
|
|
|
public function test(){
|
|
|
$user=new User();
|
|
|
$token=$user->uimsApitoken();
|
|
|
$url="http://121.37.218.20:9011/data_api/v1/insListAll";
|
|
|
$res =HttpHelper::getheader($url,"","",$token);
|
|
|
$res=json_decode($res,true);
|
|
|
return $this->success($res['message'],$res['data']);
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|