...
|
...
|
@@ -5,6 +5,7 @@ import com.yoho.search.core.personalized.service.BidataServiceCaller; |
|
|
import com.yoho.search.service.recall.helper.RecallLoggerHelper;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
...
|
...
|
@@ -24,6 +25,10 @@ public class UserPersionalFactorComponent { |
|
|
*/
|
|
|
public UserPersonalFactorRsp queryUserPersionalFactor(int uid, String udid, List<Integer> misortIds) {
|
|
|
try {
|
|
|
// 快速失败
|
|
|
if(uid<=0 && StringUtils.isEmpty(udid)){
|
|
|
return new UserPersonalFactorRsp();
|
|
|
}
|
|
|
UserPersonalFactorRsp rsp = bidataServiceCaller.queryUserPersionalFactor(uid, udid, misortIds);
|
|
|
if (rsp == null) {
|
|
|
rsp = new UserPersonalFactorRsp();
|
...
|
...
|
|