mirror of
https://github.com/Hello-hao/Tbed.git
synced 2026-09-20 03:18:28 +00:00
2026-06-03 代码优化更新
This commit is contained in:
@@ -70,7 +70,7 @@ public class MyStringUtils {
|
||||
* @return URL
|
||||
*/
|
||||
public static String concatDomainAndPath(String domain, String path) {
|
||||
if (path != null && path.length() > 1 && path.charAt(0) != '/') {
|
||||
if (path != null && path.length() > 1 && !path.startsWith("/")) {
|
||||
path = '/' + path;
|
||||
}
|
||||
if (domain.charAt(domain.length() - 1) == '/') {
|
||||
|
||||
Reference in New Issue
Block a user