作者 郭文星

132

... ... @@ -98,6 +98,15 @@ class Index extends Api
$data=['id'=>$id];
$res =HttpHelper::postheader($url,$data,"",$token);
$res=json_decode($res,true);
if($res){
$WaterCenInfourl="http://124.71.107.128:9040/screen_eqp_data/v1/eqpDataWaterCenInfo";
//$token="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IjE5OTY5MTA2NzEwIiwicGFzc3dvcmQiOiJhMGUxNWM0NDRmOGNiY2NiNTAwM2U1MDk5OGI2OGZhNyIsImV4cCI6MTczMTY2ODA5MSwiaXNzIjoidWltcyJ9.W3RBwrFdidL9ERykKC_gHtjp911xrkNvUKglSes1w7c";
$data=['wid'=>$id];
$WaterCenInfourlres =HttpHelper::postheader($WaterCenInfourl,$data,"",$token);
$WaterCenInfourlres=json_decode($res,true);
$res['data']['dayPct']=$WaterCenInfourlres['dayPct'];
$res['data']['total']=$WaterCenInfourlres['total'];
}
return $this->success($res['message'],$res['data']);
}
... ...