TASK:mixi;

This commit is contained in:
shahaibo
2024-09-20 17:02:43 +08:00
parent bdf0887f9f
commit f22819f666

View File

@@ -948,10 +948,12 @@ public class TAppProductService extends ServiceImpl<TProductMapper, TProduct> {
List<String> imageUrls = outfitRecommendation.getImageUrls();
List<String> pictureNames = new ArrayList<>();
for (String imageUrl : imageUrls) {
String[] split = imageUrl.split("\\.jpg\\?");
String[] split = imageUrl.split("\\?");
String s = split[0];
String[] split1 = s.split("/");
String pictureName = split1[split1.length - 1];
String fileName = split1[split1.length - 1];
String[] split2 = fileName.split("\\.");
String pictureName = split2[0];
pictureNames.add(pictureName);
}