mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-03-13 17:46:58 +08:00
fix(skin): CustomSkin API should have suffix slash.
This commit is contained in:
parent
ba6eb17a38
commit
32d557ee07
@ -27,7 +27,7 @@ public class MultiplayerClientServerTest {
|
||||
@Ignore
|
||||
public void startServer() throws Exception {
|
||||
Logging.initForTest();
|
||||
MultiplayerServer server = new MultiplayerServer(1000);
|
||||
MultiplayerServer server = new MultiplayerServer(1000, true);
|
||||
server.startServer(44444);
|
||||
|
||||
MultiplayerClient client = new MultiplayerClient("username", 44444);
|
||||
|
@ -130,7 +130,7 @@ public class Skin {
|
||||
});
|
||||
case LITTLE_SKIN:
|
||||
case CUSTOM_SKIN_LOADER_API:
|
||||
String realCslApi = type == Type.LITTLE_SKIN ? "http://mcskin.littleservice.cn" : cslApi;
|
||||
String realCslApi = type == Type.LITTLE_SKIN ? "http://mcskin.littleservice.cn" : StringUtils.removeSuffix(cslApi, "/");
|
||||
return Task.composeAsync(() -> new GetTask(new URL(String.format("%s/%s.json", realCslApi, username))))
|
||||
.thenComposeAsync(json -> {
|
||||
SkinJson result = JsonUtils.GSON.fromJson(json, SkinJson.class);
|
||||
|
Loading…
x
Reference in New Issue
Block a user