获取服装category bug修改
This commit is contained in:
@@ -3160,8 +3160,9 @@ public class PythonService {
|
||||
try {
|
||||
Boolean result = JSON.parseObject(JSON.toJSONString(response)).getBoolean("successful");
|
||||
if (result && jsonObject.get("msg").equals("OK!")) {
|
||||
JSONObject data = jsonObject.getJSONObject("data");
|
||||
JSONArray list = JSONArray.parseArray(data.get("list").toString());
|
||||
// JSONObject data = jsonObject.getJSONObject("data");
|
||||
// JSONArray list = JSONArray.parseArray(data.get("list").toString());
|
||||
JSONArray list = jsonObject.getJSONArray("data");
|
||||
JSONObject map = (JSONObject) list.get(0);
|
||||
return map.get("category").toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user