Compare commits
3 Commits
39dcd026c0
...
d2ced1154d
Author | SHA1 | Date |
---|---|---|
|
d2ced1154d | |
|
9352c50a22 | |
|
10c9601bbe |
|
@ -99,7 +99,11 @@ public interface DBSportsClient {
|
||||||
/**
|
/**
|
||||||
* 拉取订单Json数据
|
* 拉取订单Json数据
|
||||||
*/
|
*/
|
||||||
@Post(url = "/api/bet/queryBetListV2")
|
@Post(url = "/api/bet/queryBetListV2",
|
||||||
|
headers = {
|
||||||
|
"Content-type: application/x-www-form-urlencoded"
|
||||||
|
}
|
||||||
|
)
|
||||||
GetBetListResponse getBetList(@Body GetBetListRequest request,
|
GetBetListResponse getBetList(@Body GetBetListRequest request,
|
||||||
@Header("requestId") String requestId);
|
@Header("requestId") String requestId);
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,7 @@ public class GetBetListRequest implements Serializable {
|
||||||
/**
|
/**
|
||||||
* 请求时间戳(13位,必填)
|
* 请求时间戳(13位,必填)
|
||||||
*/
|
*/
|
||||||
private String timestamp;
|
private String timestamp = String.valueOf(System.currentTimeMillis());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 排序方式(可选)
|
* 排序方式(可选)
|
||||||
|
|
|
@ -18,6 +18,10 @@ public class GetBetListResponse implements Serializable {
|
||||||
private String msg;
|
private String msg;
|
||||||
private String code;
|
private String code;
|
||||||
private Long serverTime;
|
private Long serverTime;
|
||||||
|
private DataDTO data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public static class DataDTO {
|
||||||
|
|
||||||
|
|
||||||
// 当前页码
|
// 当前页码
|
||||||
|
@ -28,6 +32,7 @@ public class GetBetListResponse implements Serializable {
|
||||||
private Integer totalCount;
|
private Integer totalCount;
|
||||||
// 注单列表
|
// 注单列表
|
||||||
private List<OrderItemDTO> list;
|
private List<OrderItemDTO> list;
|
||||||
|
}
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public static class OrderItemDTO {
|
public static class OrderItemDTO {
|
||||||
|
|
|
@ -212,6 +212,7 @@ public class DBSportsServiceImpl implements IGamesService {
|
||||||
}
|
}
|
||||||
return exchangeMoney.getId();
|
return exchangeMoney.getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取交易id
|
* 获取交易id
|
||||||
*
|
*
|
||||||
|
@ -400,7 +401,7 @@ public class DBSportsServiceImpl implements IGamesService {
|
||||||
);
|
);
|
||||||
|
|
||||||
if (this.isSuccess(response.getCode())) {
|
if (this.isSuccess(response.getCode())) {
|
||||||
List<GetBetListResponse.OrderItemDTO> list = response.getList();
|
List<GetBetListResponse.OrderItemDTO> list = response.getData().getList();
|
||||||
if (CollectionUtils.isEmpty(list)) {
|
if (CollectionUtils.isEmpty(list)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue