修复下载路径中?后面存在/导致的崩溃问题

pull/633/head
DaveBoy1994 5 years ago
parent 41088dfa23
commit a65b2e31f9
  1. 2
      PublicComponent/src/main/java/com/arialyy/aria/util/DbDataHelper.java

@ -107,8 +107,8 @@ public class DbDataHelper {
int lastIndex = url.lastIndexOf(File.separator);
//去除url末尾携带的的参数
int endIndex = url.lastIndexOf("?");
if(endIndex<0)endIndex=url.length();
if(endIndex<0||endIndex<lastIndex)endIndex=url.length();
entity.setFileName(url.substring(lastIndex + 1,endIndex));
entity.setGroupHash(groupHash);
entity.setGroupChild(true);

Loading…
Cancel
Save