| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.dsh.course.feignClient.other.model.Site; |
| | | import com.dsh.guns.config.UserExt; |
| | | import com.dsh.guns.core.base.controller.BaseController; |
| | | import com.dsh.guns.modular.system.model.*; |
| | | import com.dsh.guns.modular.system.service.ISiteBookingService; |
| | |
| | | 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); |
| | |
| | | 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); |
| | |
| | | // 创建 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"; |
| | | |
| | |
| | | } |
| | | } |
| | | List<TStore> stores = storeService.list(new QueryWrapper<TStore>()); |
| | | model.addAttribute("list", result); |
| | | model.addAttribute("stores", stores); |
| | | model.addAttribute("list", result); |
| | | model.addAttribute("sites", list); |
| | | if(UserExt.getUser().getObjectType() == 2){ |
| | | List<TStore> operatorId = storeService.list(new QueryWrapper<TStore>() |
| | | .eq("operatorId", UserExt.getUser().getObjectId())); |
| | | model.addAttribute("stores", operatorId); |
| | | List<TSite> sites = siteService.list(new QueryWrapper<TSite>() |
| | | .eq("operatorId", UserExt.getUser().getObjectId())); |
| | | model.addAttribute("sites", sites); |
| | | } |
| | | |
| | | return PREFIX + "GameData.html"; |
| | | } |
| | | |
| | |
| | | // 创建 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="; |
| | | |
| | |
| | | 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"); |
| | |
| | | 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"); |
| | |
| | | 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"); |
| | |
| | | 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"); |