...
|
...
|
@@ -48,7 +48,7 @@ class Index extends Api |
|
|
//获取水厂列表
|
|
|
public function getwaterworks(){
|
|
|
$user=new User();
|
|
|
$token=$user->sxjApitoken();
|
|
|
$token=$user->uimsApitoken();
|
|
|
$url=$this->sxjApiurl."data_api/v1/getWaterworksListData";
|
|
|
$res =HttpHelper::postheader($url,"","",$token);
|
|
|
$res=json_decode($res,true);
|
...
|
...
|
@@ -59,7 +59,7 @@ class Index extends Api |
|
|
public function getWaterworksDetailData(){
|
|
|
$id= $this->request->param('id',"");
|
|
|
$user=new User();
|
|
|
$token=$user->sxjApitoken();
|
|
|
$token=$user->uimsApitoken();
|
|
|
$url=$this->sxjApiurl."data_api/v1/getWaterworksDetailData";
|
|
|
$data=['id'=>$id];
|
|
|
$res =HttpHelper::postheader($url,$data,"",$token);
|
...
|
...
|
@@ -77,7 +77,7 @@ class Index extends Api |
|
|
//获得净水设备列表
|
|
|
public function getWaterworksEquipmentListData(){
|
|
|
$user=new User();
|
|
|
$token=$user->sxjApitoken();
|
|
|
$token=$user->uimsApitoken();
|
|
|
$url=$this->sxjApiurl."data_api/v1/getWaterworksEquipmentListData";
|
|
|
$res =HttpHelper::postheader($url,"","",$token);
|
|
|
$res=json_decode($res,true);
|
...
|
...
|
@@ -88,7 +88,7 @@ class Index extends Api |
|
|
public function getWaterworksEquipmentDetailData(){
|
|
|
$id= $this->request->param('id',"");
|
|
|
$user=new User();
|
|
|
$token=$user->sxjApitoken();
|
|
|
$token=$user->uimsApitoken();
|
|
|
$url=$this->sxjApiurl."data_api/v1/getWaterworksEquipmentDetailData";
|
|
|
$data=['id'=>$id];
|
|
|
$res =HttpHelper::postheader($url,$data,"",$token);
|
...
|
...
|
@@ -99,7 +99,7 @@ class Index extends Api |
|
|
//-获得净水设备数据列表
|
|
|
public function getWaterworksEquipmentDataListData(){
|
|
|
$user=new User();
|
|
|
$token=$user->sxjApitoken();
|
|
|
$token=$user->uimsApitoken();
|
|
|
$url=$this->sxjApiurl."data_api/v1/getWaterworksEquipmentDataListData";
|
|
|
$res =HttpHelper::postheader($url,"","",$token);
|
|
|
$res=json_decode($res,true);
|
...
|
...
|
@@ -111,7 +111,7 @@ class Index extends Api |
|
|
public function getWaterworksEquipmentDataDetailData(){
|
|
|
$id= $this->request->param('id',"");
|
|
|
$user=new User();
|
|
|
$token=$user->sxjApitoken();
|
|
|
$token=$user->uimsApitoken();
|
|
|
$url=$this->sxjApiurl."data_api/v1/getWaterworksEquipmentDataDetailData";
|
|
|
$data=['id'=>$id];
|
|
|
$res =HttpHelper::postheader($url,$data,"",$token);
|
...
|
...
|
@@ -133,7 +133,7 @@ class Index extends Api |
|
|
//-获得设备数据详情
|
|
|
public function getAllSupplyStatistics(){
|
|
|
$user=new User();
|
|
|
$token=$user->sxjApitoken();
|
|
|
$token=$user->uimsApitoken();
|
|
|
$url=$this->sxjApiurl."data_all/v1/getAllSupplyStatistics";
|
|
|
$res =HttpHelper::postheader($url,"","",$token);
|
|
|
$res=json_decode($res,true);
|
...
|
...
|
@@ -142,7 +142,7 @@ class Index extends Api |
|
|
//-获得设备数据详情
|
|
|
public function getPayAndOwe(){
|
|
|
$user=new User();
|
|
|
$token=$user->sxjApitoken();
|
|
|
$token=$user->uimsApitoken();
|
|
|
$url=$this->sxjApiurl."data_all/v1/getPayAndOwe";
|
|
|
$res =HttpHelper::postheader($url,"","",$token);
|
|
|
$res=json_decode($res,true);
|
...
|
...
|
@@ -152,7 +152,7 @@ class Index extends Api |
|
|
//-获得水表列表
|
|
|
public function getInstrumentListData(){
|
|
|
$user=new User();
|
|
|
$token=$user->swApitoken();
|
|
|
$token=$user->uimsApitoken();
|
|
|
$url=$this->swApiurl."data_api/v1/insListAll";
|
|
|
$data=["cat"=>0];
|
|
|
$res =HttpHelper::getheader($url,$data,"",$token);
|
...
|
...
|
@@ -163,7 +163,7 @@ class Index extends Api |
|
|
public function getInstrumentDetailData(){
|
|
|
$id= $this->request->param('id',"");
|
|
|
$user=new User();
|
|
|
$token=$user->swApitoken();
|
|
|
$token=$user->uimsApitoken();
|
|
|
$url=$this->swApiurl."data_api/v1/getInstrumentDetailData";
|
|
|
$data=['id'=>$id];
|
|
|
$res =HttpHelper::postheader($url,$data,"",$token);
|
...
|
...
|
@@ -175,7 +175,7 @@ class Index extends Api |
|
|
public function eqpDataWaterCenInfo(){
|
|
|
$id= $this->request->param('id',"");
|
|
|
$user=new User();
|
|
|
$token=$user->sxjApitoken();
|
|
|
$token=$user->uimsApitoken();
|
|
|
$url=$this->sxjApiurl."screen_eqp_data/v1/eqpDataWaterCenInfo";
|
|
|
$data=['wid'=>$id];
|
|
|
$res =HttpHelper::postheader($url,$data,"",$token);
|
...
|
...
|
@@ -185,7 +185,7 @@ class Index extends Api |
|
|
//-获得水表列表
|
|
|
public function getDataWaterCenInfo($id){
|
|
|
$user=new User();
|
|
|
$token=$user->sxjApitoken();
|
|
|
$token=$user->uimsApitoken();
|
|
|
$url=$this->sxjApiurl."screen_eqp_data/v1/eqpDataWaterCenInfo";
|
|
|
$data=['wid'=>$id];
|
|
|
$res =HttpHelper::postheader($url,$data,"",$token);
|
...
|
...
|
@@ -196,7 +196,7 @@ class Index extends Api |
|
|
//-获得水表列表
|
|
|
public function getInstrumentcount(){
|
|
|
$user=new User();
|
|
|
$token=$user->swApitoken();
|
|
|
$token=$user->uimsApitoken();
|
|
|
$url=$this->swApiurl."data_api/v1/getInstrumentListData";
|
|
|
$res =HttpHelper::postheader($url,"","",$token);
|
|
|
$res=json_decode($res,true);
|
...
|
...
|
|