|
@@ -61,7 +61,7 @@ public class ViewedService {
|
|
|
param.put("videoIds", videoIds);
|
|
|
post.setEntity(new StringEntity(JSONUtils.toJson(param)));
|
|
|
|
|
|
- log.info("request HttpPost={}", JSONUtils.toJson(post));
|
|
|
+ log.info("request param={}", JSONUtils.toJson(param));
|
|
|
chr = clients.execute(post);
|
|
|
if (chr == null
|
|
|
|| chr.getStatusLine() == null
|
|
@@ -74,7 +74,9 @@ public class ViewedService {
|
|
|
if (entity == null) {
|
|
|
return Collections.emptyList();
|
|
|
}
|
|
|
- Map<String, String> data = JSONUtils.fromJson(EntityUtils.toString(entity),
|
|
|
+ String content = EntityUtils.toString(entity);
|
|
|
+ log.info("response entity={}", JSONUtils.toJson(content));
|
|
|
+ Map<String, String> data = JSONUtils.fromJson(content,
|
|
|
new TypeToken<Map<String, String>>() {
|
|
|
},
|
|
|
Collections.emptyMap());
|