TASK:BrandDNA

This commit is contained in:
2025-07-03 09:40:56 +08:00
parent 07aad4afa0
commit d51bbffb3e

View File

@@ -80,11 +80,12 @@ public class ProductImageServiceImpl implements ProductImageService {
JSONObject obj = data.getJSONObject(i); JSONObject obj = data.getJSONObject(i);
String gender = library.getLevel3Type(); String gender = library.getLevel3Type();
String category = null; String category = null;
if (gender.equals("Female")) { category = obj.getString("category_female");
/*if (gender.equals("Female")) {
category = obj.getString("category_female"); category = obj.getString("category_female");
}else if (gender.equals("Male")) { }else if (gender.equals("Male")) {
category = obj.getString("category_male"); category = obj.getString("category_male");
} }*/
String imgUrl = obj.getString("img_url"); String imgUrl = obj.getString("img_url");
// JSONObject attribute = obj.getJSONObject("attribute"); // JSONObject attribute = obj.getJSONObject("attribute");
// AttributeRecognitionJSON attrJSON = attribute.toJavaObject(AttributeRecognitionJSON.class); // AttributeRecognitionJSON attrJSON = attribute.toJavaObject(AttributeRecognitionJSON.class);