修改配置中记录日志默认值为2,流媒体跟VoIP,缓存策略,拦截策略默认为1,修改httpclient gson转换时错误
This commit is contained in:
@@ -42,6 +42,8 @@ import com.nis.exceptions.MaatConvertException;
|
||||
import com.nis.util.Constants;
|
||||
import com.nis.util.Encodes;
|
||||
import com.nis.util.StringUtil;
|
||||
|
||||
import net.sf.json.JSONObject;
|
||||
/**
|
||||
* @ClassName: HttpClientBean.java
|
||||
* @Description: TODO
|
||||
@@ -298,8 +300,8 @@ public class HttpClientUtil {
|
||||
* @return
|
||||
*/
|
||||
public static String galaxyMessageFormat(String recv){
|
||||
Gson gson = new Gson();
|
||||
Map parse = gson.fromJson(recv,Map.class);
|
||||
JSONObject jobj = JSONObject.fromObject(recv);
|
||||
Map<String, Object> parse = (Map<String, Object>)jobj;
|
||||
Map map = (Map) parse.get("data");
|
||||
List reslist=new ArrayList();
|
||||
List<Map<String,Object>> list= (List)map.get("list");
|
||||
@@ -331,7 +333,7 @@ public class HttpClientUtil {
|
||||
}
|
||||
map.put("list", reslist);
|
||||
parse.put("data", map);
|
||||
recv = gson.toJson(parse);
|
||||
recv = parse.toString();
|
||||
}
|
||||
return recv;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user