Compare commits

...

3 Commits

Author SHA1 Message Date
shi d2ced1154d refactor(game): 恢复 DBSports 实时记录接口时间参数使用
- 重新启用 getRealtimeRecord 接口中 startTime 和 endTime 参数
- 移除测试用的硬编码时间值
-优化代码格式和缩进
2025-04-11 16:58:57 +08:00
shi 9352c50a22 Merge branch 'main-meitian' into main-pgt 2025-04-11 16:56:37 +08:00
liaoyong 10c9601bbe refactor(ff-game): 重构注单拉取接口和数据处理- 在 DBSportsClient 中为 getBetList 方法添加 Content-type 头
- 修改 DBSportsServiceImpl 中的 getRealtimeRecord 方法,使用固定的时间戳进行测试
- 更新 GetBetListRequest 中的 timestamp 字段默认值为当前时间戳
- 重构 GetBetListResponse 结构,将列表数据封装到 DataDTO 中
2025-04-11 11:23:33 +08:00
4 changed files with 22 additions and 12 deletions

View File

@ -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);

View File

@ -67,7 +67,7 @@ public class GetBetListRequest implements Serializable {
/** /**
* 13 * 13
*/ */
private String timestamp; private String timestamp = String.valueOf(System.currentTimeMillis());
/** /**
* *

View File

@ -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 {

View File

@ -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;
} }