作者 郭文星

123

... ... @@ -221,4 +221,18 @@ class Index extends Api
return $res;
}
//-获得水表列表
public function getInstrumentcount(){
$token=$this->token;
$url="http://121.37.218.20:9011/data_api/v1/getInstrumentListData";
$res =HttpHelper::postheader($url,"","",$token);
$res=json_decode($res,true);
if($res['code']){
$returndata=['total'=>$res['data']['total']];
return $this->success($res['message'],$returndata);
}else{
return $this->error($res['message']);
}
}
}
\ No newline at end of file
... ...