downloadUrl static method
处理为完整的下载downloadUrl 必须配置 LocalServerCacheBinderSetting.baseDomain
Implementation
static String downloadUrl(String url) {
String downUrl = url;
if (!downUrl.startsWith('http') && !downUrl.startsWith('https')) {
if (!downUrl.startsWith("/")) {
downUrl = "/$downUrl";
}
downUrl = LocalServerCacheBinderSetting().baseDomain + downUrl;
}
return downUrl;
}