puzhibing
2024-03-25 1eed180f9c2bf73130ddcab66d25e6a641660ff0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//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);
//        }
//    }
//
//}