feat(fc): 优化 FC 地址来源

- 在 UrlInfo 类中添加 https 和 host 字段,用于存储 HTTPS 协议和端口信息
- 修改 MyFCAddressSource 类中的 getAddress 方法,使用新的 https 和 host 字段
-通过这些改动,提高了地址信息的灵活性和可配置性
main-DP
shi 2025-04-12 09:38:51 +08:00
parent e12fd287be
commit 16f83851e5
2 changed files with 14 additions and 1 deletions

View File

@ -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), "");
}
}

View File

@ -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;
/**
*
*/