feat:无参构造修复
This commit is contained in:
@@ -7,7 +7,6 @@ import org.checkerframework.checker.units.qual.N;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class PrivilegeCode {
|
||||
|
||||
}
|
||||
|
||||
@@ -104,10 +104,28 @@ public class PerformServiceHttpServiceImpl implements IPerformServiceHttp {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
Map<String, String> params = Maps.newHashMap();
|
||||
Long projectId = 7484116591L;
|
||||
params.put("project_id", String.valueOf(projectId));
|
||||
Map<String, String> headers = Maps.newHashMap();
|
||||
String req = "{" +
|
||||
" \"deliveryType\": 1," +
|
||||
" \"contactName\": \"朱吉祥\"," +
|
||||
" \"contactPhone\": \"15858717571\"," +
|
||||
" \"combineTicketVos\": null," +
|
||||
" \"ordinaryTicketVos\": null," +
|
||||
" \"payment\": 999," +
|
||||
" \"totalPrice\": 999," +
|
||||
" \"performId\": 2772," +
|
||||
" \"projectId\": \"5881698656\"," +
|
||||
" \"privilegeCodeList\": []," +
|
||||
" \"audienceCount\": 1," +
|
||||
" \"frequentIds\": [" +
|
||||
" 35320661" +
|
||||
" ]," +
|
||||
" \"seatPlanIds\": [" +
|
||||
" 14118," +
|
||||
" 14117" +
|
||||
" ]," +
|
||||
" \"blackBox\": \":0\"" +
|
||||
"}";
|
||||
headers.put("content-type", "application/json");
|
||||
headers.put("Host", "api.livelab.com.cn");
|
||||
headers.put("Connection", "keep-alive");
|
||||
@@ -116,18 +134,18 @@ public class PerformServiceHttpServiceImpl implements IPerformServiceHttp {
|
||||
headers.put("User-Agent", "Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.61(0x18003d2e) NetType/WIFI Language/zh_CN");
|
||||
headers.put("X-REQUEST-STARTTIME", String.valueOf(System.currentTimeMillis()));
|
||||
headers.put("Authorization", UrlConstants.token);
|
||||
String respStr = HttpUtils.doGet(UrlConstants.PROJECTS_INFO_URL, headers, params);
|
||||
String respStr = HttpUtils.doPost(UrlConstants.PROJECT_ORDER_CREATE_URL, headers, req);
|
||||
if (StringUtils.isBlank(respStr)) {
|
||||
log.info("1");
|
||||
}
|
||||
JSONObject resp = JSON.parseObject(respStr);
|
||||
Integer code = (Integer) resp.get("code");
|
||||
if (Objects.nonNull(code) && Objects.equals(code, CodeConstants.SUCCESS)) {
|
||||
ProjectInfoResp projectInfoResp = JSON.parseObject(resp.get("data").toString(), ProjectInfoResp.class);
|
||||
ProjectOrderCreateResp projectInfoResp = JSON.parseObject(resp.get("data").toString(), ProjectOrderCreateResp.class);
|
||||
if (Objects.isNull(projectInfoResp)) {
|
||||
log.info("2");
|
||||
}
|
||||
log.info("查询结果:{}", projectInfoResp);
|
||||
}
|
||||
log.info("查询结果:{}", resp);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user