正在显示
1 个修改的文件
包含
17 行增加
和
0 行删除
@@ -211,6 +211,23 @@ class Index extends Api | @@ -211,6 +211,23 @@ class Index extends Api | ||
211 | } | 211 | } |
212 | } | 212 | } |
213 | 213 | ||
214 | + //-获得水表详情 | ||
215 | + public function insOne(){ | ||
216 | + $code= $this->request->param('code',""); | ||
217 | + $user=new User(); | ||
218 | + $token=$user->uimsApitoken(); | ||
219 | + $url=$this->swApiurl."data_api/v1/insOne"; | ||
220 | + $data=["code"=>$code]; | ||
221 | + $res =HttpHelper::getheader($url,$data,"",$token); | ||
222 | + $res=json_decode($res,true); | ||
223 | + if($res['code']){ | ||
224 | + return $this->success($res['message'],$res['data']); | ||
225 | + }else{ | ||
226 | + return $this->error($res['message']); | ||
227 | + } | ||
228 | + } | ||
229 | + | ||
230 | + | ||
214 | //获取水厂列表 | 231 | //获取水厂列表 |
215 | public function insInstalledList(){ | 232 | public function insInstalledList(){ |
216 | $pageSize= $this->request->param('pageSize',""); | 233 | $pageSize= $this->request->param('pageSize',""); |
-
请 注册 或 登录 后发表评论