|
@@ -267,8 +267,9 @@ public class CommonUtils {
|
|
|
* @return File
|
|
|
*/
|
|
|
public static File getFileByHttpURL(String path, String address, String checkStr, String replacePrefix){
|
|
|
- String newUrl = path.split("[?]")[0];
|
|
|
+ String newUrl = !path.contains("/img/get?key=") ? path.split("[?]")[0] : path.split("[?]")[1];
|
|
|
String[] suffix = newUrl.split("/");
|
|
|
+
|
|
|
//得到最后一个分隔符后的名字
|
|
|
String fileName = suffix[suffix.length - 1];
|
|
|
String reqUrl = path;
|