mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-12 17:28:57 +08:00
[F] Fix extra slash in url
This commit is contained in:
@@ -164,16 +164,16 @@ class AllNet(
|
|||||||
val port = props.port?.toString() ?: localPort
|
val port = props.port?.toString() ?: localPort
|
||||||
|
|
||||||
// If keychip authentication is enabled, the game URLs will be set to /gs/{token}/{game}/...
|
// If keychip authentication is enabled, the game URLs will be set to /gs/{token}/{game}/...
|
||||||
val base = if (props.checkKeychip) "/gs/$serial" else "/g"
|
val base = if (props.checkKeychip) "gs/$serial" else "g"
|
||||||
|
|
||||||
return "http://$addr:$port/$base" + when (gameId) {
|
return "http://$addr:$port/$base/" + when (gameId) {
|
||||||
"SDBT" -> "/chu2/$ver/$serial/"
|
"SDBT" -> "chu2/$ver/$serial/"
|
||||||
"SDHD" -> "/chu3/$ver/"
|
"SDHD" -> "chu3/$ver/"
|
||||||
"SBZV" -> "/diva/"
|
"SBZV" -> "diva/"
|
||||||
"SDDT" -> "/ongeki/"
|
"SDDT" -> "ongeki/"
|
||||||
"SDEY" -> "/mai/"
|
"SDEY" -> "mai/"
|
||||||
"SDEZ" -> "/mai2/"
|
"SDEZ" -> "mai2/"
|
||||||
"SDED" -> "/card/"
|
"SDED" -> "card/"
|
||||||
else -> ""
|
else -> ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user