From a4d873761dd03a74950d05f204171255509bd5fb Mon Sep 17 00:00:00 2001 From: zhibing.pu <393733352@qq.com> Date: 星期一, 17 六月 2024 16:03:35 +0800 Subject: [PATCH] 修改 bug --- cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/GameDataController.java | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/GameDataController.java b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/GameDataController.java index 2c3e2dc..a980951 100644 --- a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/GameDataController.java +++ b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/GameDataController.java @@ -68,7 +68,7 @@ if(cityCode==null){ cityCode=""; } - String apiUrl1 = "https://try.daowepark.com/v7/user_api/general/cityGameRanking?space_id="+spaceId+"&type="+type+"&date="+date+"&city_code="+cityCode; + String apiUrl1 = "https://port.daowepark.com/v7/user_api/general/cityGameRanking?space_id="+spaceId+"&type="+type+"&date="+date+"&city_code="+cityCode; URL url1 = null; try { url1 = new URL(apiUrl1); @@ -119,8 +119,8 @@ if(cityCode==null){ cityCode=""; } -// String apiUrl1 = "https://try.daowepark.com/v7/user_api/general/accuracyGameRanking?space_id=1001"+spaceId+"&type="+type+"&date="+date+"&city_code="+cityCode; - String apiUrl1 = "https://try.daowepark.com/v7/user_api/general/accuracyGameRanking?space_id="+spaceId+"&type="+type+"&date="+date+"&city_code="+cityCode; +// String apiUrl1 = "https://port.daowepark.com/v7/user_api/general/accuracyGameRanking?space_id=1001"+spaceId+"&type="+type+"&date="+date+"&city_code="+cityCode; + String apiUrl1 = "https://port.daowepark.com/v7/user_api/general/accuracyGameRanking?space_id="+spaceId+"&type="+type+"&date="+date+"&city_code="+cityCode; URL url1 = null; try { url1 = new URL(apiUrl1); @@ -165,7 +165,7 @@ // 创建 HttpClient 实例 HttpClient httpClient = HttpClients.createDefault(); // 创建 POST 请求 - HttpPost httpPost = new HttpPost("https://try.daowepark.com/v7/user_api/general/gameList"); + HttpPost httpPost = new HttpPost("https://port.daowepark.com/v7/user_api/general/gameList"); // 设置请求体数据 String postData = "sign=0DB011836143EEE2C2E072967C9F4E4B&space_id=1001&sutu_id=1001"; @@ -222,7 +222,7 @@ // 创建 HttpClient 实例 HttpClient httpClient = HttpClients.createDefault(); // 创建 POST 请求 - HttpPost httpPost = new HttpPost("https://try.daowepark.com/v7/user_api/general/getBatterData"); + HttpPost httpPost = new HttpPost("https://port.daowepark.com/v7/user_api/general/getBatterData"); // 设置请求体数据 String postData = "sign=0DB011836143EEE2C2E072967C9F4E4B&space_id="+storeId+"&date_type="+range+"&year="; @@ -263,7 +263,7 @@ public Object listSUTU() { Map<String, Object> result = new HashMap<>(); try { - String apiUrl = "https://try.daowepark.com/v7/user_api/general/gameDataRate"; + String apiUrl = "https://port.daowepark.com/v7/user_api/general/gameDataRate"; URL url = new URL(apiUrl); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); @@ -309,7 +309,7 @@ public Object listSUTU1(String range,String gameId, String time, String spaceId, String cityCode) { Map<String, Object> result = new HashMap<>(); try { - String apiUrl = "https://try.daowepark.com/v7/user_api/general/getSingleGameData?game_id=" + gameId + "&date_type=" + range + "&date=" + time + "&space_id=" + spaceId + "&city_code=" + cityCode; + String apiUrl = "https://port.daowepark.com/v7/user_api/general/getSingleGameData?game_id=" + gameId + "&date_type=" + range + "&date=" + time + "&space_id=" + spaceId + "&city_code=" + cityCode; URL url = new URL(apiUrl); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); @@ -357,7 +357,7 @@ public Object cityGameOne() { Map<String, Object> result = new HashMap<>(); try { - String apiUrl = "https://try.daowepark.com/v7/user_api/general/getAccuracyGameCount?space_id="; + String apiUrl = "https://port.daowepark.com/v7/user_api/general/getAccuracyGameCount?space_id="; URL url = new URL(apiUrl); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); @@ -394,7 +394,7 @@ public Object cityGame() { Map<String, Object> result = new HashMap<>(); try { - String apiUrl = "https://try.daowepark.com/v7/user_api/general/getCityGameCount"; + String apiUrl = "https://port.daowepark.com/v7/user_api/general/getCityGameCount"; URL url = new URL(apiUrl); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); -- Gitblit v1.7.1