//package com.dsh;
|
//
|
//import com.alibaba.fastjson.JSONObject;
|
//import org.junit.Test;
|
//import org.junit.runner.RunWith;
|
//import org.springframework.boot.test.context.SpringBootTest;
|
//import org.springframework.test.context.junit4.SpringRunner;
|
//
|
//import java.util.HashMap;
|
//import java.util.List;
|
//
|
///**
|
// * @author zhibing.pu
|
// * @date 2024/3/8 16:42
|
// */
|
//@RunWith(SpringRunner.class)
|
//@SpringBootTest
|
//public class CommunityWorldCupApplicationTest {
|
//
|
//
|
//
|
// @Test
|
// public void test(){
|
// 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);
|
// }
|
// }
|
//
|
//}
|