mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
uploadFirmware 上传固件接口
This commit is contained in:
@@ -227,6 +227,23 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
|
||||
return StringUtils.startsWithAny(link, Constants.HTTP, Constants.HTTPS);
|
||||
}
|
||||
|
||||
/**
|
||||
* 去除http(s)://开头
|
||||
* @param link
|
||||
* @return
|
||||
*/
|
||||
public static String removeHttp(String link) {
|
||||
String result;
|
||||
if (StringUtils.startsWith(link, Constants.HTTP)) {
|
||||
result = link.replace(Constants.HTTP, "");
|
||||
} else if (StringUtils.startsWith(link, Constants.HTTPS)) {
|
||||
result = link.replace(Constants.HTTPS, "");
|
||||
} else {
|
||||
result = link;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 字符串转set
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user