FengChaoYu hai 6 meses
pai
achega
41e756a3ec

+ 2 - 1
mall-miniapp-service/src/main/java/com/gree/mall/miniapp/utils/CommonUtils.java

@@ -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;