正在显示
1 个修改的文件
包含
9 行增加
和
0 行删除
@@ -98,6 +98,15 @@ class Index extends Api | @@ -98,6 +98,15 @@ class Index extends Api | ||
98 | $data=['id'=>$id]; | 98 | $data=['id'=>$id]; |
99 | $res =HttpHelper::postheader($url,$data,"",$token); | 99 | $res =HttpHelper::postheader($url,$data,"",$token); |
100 | $res=json_decode($res,true); | 100 | $res=json_decode($res,true); |
101 | + if($res){ | ||
102 | + $WaterCenInfourl="http://124.71.107.128:9040/screen_eqp_data/v1/eqpDataWaterCenInfo"; | ||
103 | + //$token="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IjE5OTY5MTA2NzEwIiwicGFzc3dvcmQiOiJhMGUxNWM0NDRmOGNiY2NiNTAwM2U1MDk5OGI2OGZhNyIsImV4cCI6MTczMTY2ODA5MSwiaXNzIjoidWltcyJ9.W3RBwrFdidL9ERykKC_gHtjp911xrkNvUKglSes1w7c"; | ||
104 | + $data=['wid'=>$id]; | ||
105 | + $WaterCenInfourlres =HttpHelper::postheader($WaterCenInfourl,$data,"",$token); | ||
106 | + $WaterCenInfourlres=json_decode($res,true); | ||
107 | + $res['data']['dayPct']=$WaterCenInfourlres['dayPct']; | ||
108 | + $res['data']['total']=$WaterCenInfourlres['total']; | ||
109 | + } | ||
101 | return $this->success($res['message'],$res['data']); | 110 | return $this->success($res['message'],$res['data']); |
102 | } | 111 | } |
103 | 112 |
-
请 注册 或 登录 后发表评论