feat(fc): 优化 FC 地址来源
- 在 UrlInfo 类中添加 https 和 host 字段,用于存储 HTTPS 协议和端口信息 - 修改 MyFCAddressSource 类中的 getAddress 方法,使用新的 https 和 host 字段 -通过这些改动,提高了地址信息的灵活性和可配置性main-DP
parent
e12fd287be
commit
16f83851e5
|
@ -20,6 +20,10 @@ public class MyFCAddressSource implements AddressSource {
|
|||
public ForestAddress getAddress(ForestRequest request) {
|
||||
String apiBaseUrl = platformService.get(GamePlatforms.FC.getCode())
|
||||
.getUrlInfo().getUrl();
|
||||
return new ForestAddress("https", apiBaseUrl, 443, "");
|
||||
String https = platformService.get(GamePlatforms.FC.getCode())
|
||||
.getUrlInfo().getHttps();
|
||||
String host = platformService.get(GamePlatforms.FC.getCode())
|
||||
.getUrlInfo().getHost();
|
||||
return new ForestAddress(https, apiBaseUrl, Integer.valueOf(host), "");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,6 +13,15 @@ public class UrlInfo implements Serializable {
|
|||
private String url;
|
||||
private String loginUrl;
|
||||
private String hallCode;
|
||||
/**
|
||||
* HTTPS协议
|
||||
*/
|
||||
private String https;
|
||||
|
||||
/**
|
||||
* 端口
|
||||
*/
|
||||
private String host;
|
||||
/**
|
||||
* 投注网址
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue