正在显示
1 个修改的文件
包含
14 行增加
和
0 行删除
@@ -221,4 +221,18 @@ class Index extends Api | @@ -221,4 +221,18 @@ class Index extends Api | ||
221 | return $res; | 221 | return $res; |
222 | } | 222 | } |
223 | 223 | ||
224 | + //-获得水表列表 | ||
225 | + public function getInstrumentcount(){ | ||
226 | + $token=$this->token; | ||
227 | + $url="http://121.37.218.20:9011/data_api/v1/getInstrumentListData"; | ||
228 | + $res =HttpHelper::postheader($url,"","",$token); | ||
229 | + $res=json_decode($res,true); | ||
230 | + if($res['code']){ | ||
231 | + $returndata=['total'=>$res['data']['total']]; | ||
232 | + return $this->success($res['message'],$returndata); | ||
233 | + }else{ | ||
234 | + return $this->error($res['message']); | ||
235 | + } | ||
236 | + } | ||
237 | + | ||
224 | } | 238 | } |
-
请 注册 或 登录 后发表评论