| | |
| | | //package com.dsh; |
| | | // |
| | | //import com.dsh.communityWorldCup.model.WorldCupRank; |
| | | //import com.dsh.communityWorldCup.model.WorldCupRankVo; |
| | | //import com.dsh.communityWorldCup.service.IWorldCupCompetitorService; |
| | | //import com.alibaba.fastjson.JSONObject; |
| | | //import org.junit.Test; |
| | | //import org.junit.runner.RunWith; |
| | | //import org.springframework.beans.factory.annotation.Autowired; |
| | | //import org.springframework.boot.test.context.SpringBootTest; |
| | | //import org.springframework.test.context.junit4.SpringRunner; |
| | | // |
| | | //import java.util.HashMap; |
| | | //import java.util.List; |
| | | // |
| | | ///** |
| | |
| | | //@SpringBootTest |
| | | //public class CommunityWorldCupApplicationTest { |
| | | // |
| | | // @Autowired |
| | | // private IWorldCupCompetitorService worldCupCompetitorService; |
| | | // |
| | | // |
| | | // @Test |
| | | // public void test(){ |
| | | // WorldCupRank worldCupRank = new WorldCupRank(); |
| | | // worldCupRank.setAppUserId(129); |
| | | // worldCupRank.setSort(2); |
| | | // worldCupRank.setIsStudent(0); |
| | | // worldCupRank.setRadius(1); |
| | | // List<WorldCupRankVo> worldCupRank1 = worldCupCompetitorService.getWorldCupRank(worldCupRank); |
| | | // HashMap<String, String> map = new HashMap<>(); |
| | | // map.put("sign", "0DB011836143EEE2C2E072967C9F4E4B"); |
| | | // map.put("space_id", "2024"); |
| | | // map.put("red_sutu_id", "1037"); |
| | | // map.put("blue_sutu_id", "1036"); |
| | | // map.put("api_url", "http://8.137.22.229:56666/communityWorldCup/base/worldCup/endWorldCupCallback"); |
| | | // map.put("custom", ""); |
| | | // |
| | | // String s = HttpRequestUtil.postRequest("https://try.daowepark.com/v7/user_api/general/batterGame", map); |
| | | // JSONObject jsonObject = JSONObject.parseObject(s); |
| | | // Integer code1 = jsonObject.getInteger("code"); |
| | | // String message = jsonObject.getString("message"); |
| | | // if (200 == code1) { |
| | | // return ResultUtil.success(); |
| | | // } else { |
| | | // return ResultUtil.error(message); |
| | | // } |
| | | // } |
| | | // |
| | | //} |