...
|
...
|
@@ -83,15 +83,7 @@ public class UserRecallRequestResponseCacheBean extends AbstractCacheBean<UserRe |
|
|
RECALL_NEW_LOGGER.info("UserRecallRequestResponseCacheBean[2]-batchRecallAndCache,cost is [{}]", System.currentTimeMillis()-begin);
|
|
|
if(param.getUid()==13420925){
|
|
|
for(RecallRequestResponse recallRequestResponse: requestResponses){
|
|
|
StringBuilder responseLog = new StringBuilder();
|
|
|
RecallResponse recallResponse = recallRequestResponse.getResponse();
|
|
|
if(recallResponse==null){
|
|
|
responseLog.append("null");
|
|
|
}else{
|
|
|
responseLog.append("total is [").append(recallResponse.getTotal()).append("], ");
|
|
|
responseLog.append("sknList is ").append(recallResponse.getSkns()==null?"[]", JSON.toJSONString(recallResponse.getSkns()));
|
|
|
}
|
|
|
RECALL_NEW_LOGGER.info("request_type is [{}], response is [{}] ", recallRequestResponse.getRequest().requestStrategy().name(),responseLog);
|
|
|
RECALL_NEW_LOGGER.info("request_type is [{}], response is [{}] ", recallRequestResponse.getRequest().requestStrategy().name(),this.getResponseLog(recallRequestResponse));
|
|
|
}
|
|
|
}
|
|
|
//4、获取skn列表[去重]
|
...
|
...
|
@@ -103,6 +95,18 @@ public class UserRecallRequestResponseCacheBean extends AbstractCacheBean<UserRe |
|
|
return userRecallResponse;
|
|
|
}
|
|
|
|
|
|
private String getResponseLog(RecallRequestResponse recallRequestResponse){
|
|
|
RecallResponse recallResponse = recallRequestResponse.getResponse();
|
|
|
StringBuilder responseLog = new StringBuilder();
|
|
|
if(recallResponse==null){
|
|
|
responseLog.append("null");
|
|
|
}else{
|
|
|
responseLog.append("total is [").append(recallResponse.getTotal()).append("], ");
|
|
|
responseLog.append("sknList is ").append(recallResponse.getSkns()==null?"[]":JSON.toJSONString(recallResponse.getSkns()));
|
|
|
}
|
|
|
return responseLog.toString();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 批量构造请求
|
|
|
* @param param
|
...
|
...
|
|