Commit c2c8a965 authored by Quxl's avatar Quxl

x

parent af3acb1d
......@@ -92,8 +92,9 @@ public class WebApiController {
{
String director_cn = (String)extMap.get("director_cn");
String director_en = (String)extMap.get("director_en");
if(StringUtil.isNotBlank(director_cn)) {
String[] directorCnArray = director_cn.split(",");
String[] directorEnArray = director_en.split(",", directorCnArray.length);
String[] directorEnArray = (director_en == null ? "" : director_en).split(",", directorCnArray.length);
List<Map<String, Object>> directorList = new ArrayList<Map<String, Object>>();
for(int i = 0; i < directorCnArray.length; i++) {
Map<String, Object> directorMap = new HashMap<String,Object>();
......@@ -102,9 +103,11 @@ public class WebApiController {
directorList.add(directorMap);
}
map.put("directorList", directorList);
}
} {
String producer_en = (String)extMap.get("producer_en");
String production_en = (String)extMap.get("production_en");
if(StringUtil.isNotBlank(producer_en)) {
String[] producerArray = producer_en.split(",");
List<Map<String, Object>> producerList = new ArrayList<Map<String, Object>>();
for(int i = 0; i < producerArray.length; i++) {
......@@ -115,6 +118,7 @@ public class WebApiController {
}
map.put("producerList", producerList);
}
}
list.add(map);
}
return Rjx.jsonOk().setData(list);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment