|
@@ -118,7 +118,7 @@ public class HttpHelper : MonoBehaviour
|
|
|
InitRKZYData();
|
|
|
}
|
|
|
|
|
|
- if (GlobalData.pageIndex == PageIndex.Page1 || GlobalData.pageIndex == PageIndex.Page2)
|
|
|
+ if (GlobalData.pageIndex == PageIndex.Page1 || GlobalData.pageIndex == PageIndex.Page2 || GlobalData.pageIndex == PageIndex.Page3)
|
|
|
{
|
|
|
Debug.Log("HttpInitSWYJData");
|
|
|
//可以并行,无需等待
|
|
@@ -1570,7 +1570,7 @@ public class HttpHelper : MonoBehaviour
|
|
|
// 提取data字段的值
|
|
|
JToken dataToken = jsonObject["data"];
|
|
|
JToken codeToken = jsonObject["code"];
|
|
|
- //Debug.LogError(dataToken);
|
|
|
+ Debug.LogError(dataToken);
|
|
|
if (codeToken.ToString() == "200")
|
|
|
{
|
|
|
//Debug.LogError(200);
|
|
@@ -2107,6 +2107,7 @@ public class HttpHelper : MonoBehaviour
|
|
|
public async Task<string> GetWaterTrend_Chart(string stcd,string startDate,string endDate)
|
|
|
{
|
|
|
UnityWebRequest www = new UnityWebRequest(ServerAddress.API_GetWaterTrend_chart + stcd + "&startDate=" + startDate + "&endDate=" + endDate, "Get");
|
|
|
+ Debug.Log(ServerAddress.API_GetWaterTrend_chart + stcd + "&startDate=" + startDate + "&endDate=" + endDate);
|
|
|
www.downloadHandler = new DownloadHandlerBuffer();
|
|
|
www.SetRequestHeader("Content-Type", "application/json");
|
|
|
await www.SendWebRequest();
|