浏览代码

fix for weather-air pollen bug

removed / in $endpoint
jonchen727 6 年之前
父节点
当前提交
a254917d2f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/functions/homepage-connect-functions.php

+ 1 - 1
api/functions/homepage-connect-functions.php

@@ -133,7 +133,7 @@ function getWeatherAndAir()
 				}
 			}
 			if ($GLOBALS['homepageWeatherAndAirPollenEnabled']) {
-				$endpoint = '/pollen/v2/forecast/daily/?features=plants_information,types_information&days=1&metadata=true';
+				$endpoint = '/pollen/v2/forecast/daily?features=plants_information,types_information&days=1&metadata=true';
 				$response = Requests::get($apiURL . $endpoint . $info, $headers, $options);
 				if ($response->success) {
 					$apiData = json_decode($response->body, true);