TASK:BrandDNA
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user