Authored by wangnan

fix

... ... @@ -138,6 +138,7 @@ public class IndexController implements ApplicationEventPublisherAware {
if (StringUtils.isBlank(indexName) || StringUtils.isBlank(action) || StringUtils.isBlank(id)) {
Map<String, Object> rtnMap = new HashMap<String, Object>();
rtnMap.put("code", 400);
jsonMap.put("status", 0);
rtnMap.put("error", "参数错误");
return rtnMap;
} else if (indexName.equals(ISearchConstans.INDEX_NAME_BIZAREA) || indexName.equals(ISearchConstans.INDEX_NAME_STORE) || indexName.equals(ISearchConstans.INDEX_NAME_LINE) || indexName.equals(ISearchConstans.INDEX_NAME_TOPIC) || indexName.equals(ISearchConstans.INDEX_NAME_COMMENT)) {
... ... @@ -167,6 +168,7 @@ public class IndexController implements ApplicationEventPublisherAware {
if(fields==null){
Map<String, Object> jsonMap = new LinkedHashMap<String, Object>();
jsonMap.put("code", 400);
jsonMap.put("status", 1);
jsonMap.put("message", "data参数为空");
return jsonMap;
}
... ... @@ -176,6 +178,7 @@ public class IndexController implements ApplicationEventPublisherAware {
if(maps.length!=2){
Map<String, Object> jsonMap = new LinkedHashMap<String, Object>();
jsonMap.put("code", 400);
jsonMap.put("status", 1);
jsonMap.put("message", "参数格式不合法");
return jsonMap;
}
... ...