作者 郭文星

1312

@@ -101,8 +101,8 @@ class Index extends Api @@ -101,8 +101,8 @@ class Index extends Api
101 if($res){ 101 if($res){
102 $WaterCenInfourl="http://124.71.107.128:9040/screen_eqp_data/v1/eqpDataWaterCenInfo"; 102 $WaterCenInfourl="http://124.71.107.128:9040/screen_eqp_data/v1/eqpDataWaterCenInfo";
103 //$token="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IjE5OTY5MTA2NzEwIiwicGFzc3dvcmQiOiJhMGUxNWM0NDRmOGNiY2NiNTAwM2U1MDk5OGI2OGZhNyIsImV4cCI6MTczMTY2ODA5MSwiaXNzIjoidWltcyJ9.W3RBwrFdidL9ERykKC_gHtjp911xrkNvUKglSes1w7c"; 103 //$token="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IjE5OTY5MTA2NzEwIiwicGFzc3dvcmQiOiJhMGUxNWM0NDRmOGNiY2NiNTAwM2U1MDk5OGI2OGZhNyIsImV4cCI6MTczMTY2ODA5MSwiaXNzIjoidWltcyJ9.W3RBwrFdidL9ERykKC_gHtjp911xrkNvUKglSes1w7c";
104 - $data=['wid'=>$id];  
105 - $WaterCenInfourlres =HttpHelper::postheader($WaterCenInfourl,$data,"",$token); 104 + $WaterCenIndata=['wid'=>$res['data']['id']];
  105 + $WaterCenInfourlres =HttpHelper::postheader($WaterCenInfourl,$WaterCenIndata,"",$token);
106 $WaterCenInfourlres=json_decode($WaterCenInfourlres,true); 106 $WaterCenInfourlres=json_decode($WaterCenInfourlres,true);
107 $res['data']['dayPct']=$WaterCenInfourlres['dayPct']; 107 $res['data']['dayPct']=$WaterCenInfourlres['dayPct'];
108 $res['data']['total']=$WaterCenInfourlres['total']; 108 $res['data']['total']=$WaterCenInfourlres['total'];