Showing
2 changed files
with
10 additions
and
16 deletions
@@ -12,10 +12,6 @@ | @@ -12,10 +12,6 @@ | ||
12 | 12 | ||
13 | <dependencies> | 13 | <dependencies> |
14 | <dependency> | 14 | <dependency> |
15 | - <groupId>com.yoho.core</groupId> | ||
16 | - <artifactId>yoho-core-rest-client-simple</artifactId> | ||
17 | - </dependency> | ||
18 | - <dependency> | ||
19 | <groupId>com.yoho.search</groupId> | 15 | <groupId>com.yoho.search</groupId> |
20 | <artifactId>search-es</artifactId> | 16 | <artifactId>search-es</artifactId> |
21 | </dependency> | 17 | </dependency> |
service/src/main/java/com/yoho/search/recall/scene/beans/persional/UserPersionalFactorComponent.java
1 | package com.yoho.search.recall.scene.beans.persional; | 1 | package com.yoho.search.recall.scene.beans.persional; |
2 | 2 | ||
3 | -import com.yoho.core.rest.client.ServiceCaller; | ||
4 | import com.yoho.search.core.personalized.models.SortPriceArea; | 3 | import com.yoho.search.core.personalized.models.SortPriceArea; |
5 | -import com.yoho.search.core.personalized.models.UserPersionalFactorReq; | ||
6 | import com.yoho.search.core.personalized.models.UserPersionalFactorRsp; | 4 | import com.yoho.search.core.personalized.models.UserPersionalFactorRsp; |
7 | import org.slf4j.Logger; | 5 | import org.slf4j.Logger; |
8 | import org.slf4j.LoggerFactory; | 6 | import org.slf4j.LoggerFactory; |
9 | -import org.springframework.beans.factory.annotation.Autowired; | ||
10 | import org.springframework.stereotype.Component; | 7 | import org.springframework.stereotype.Component; |
11 | 8 | ||
12 | import java.util.ArrayList; | 9 | import java.util.ArrayList; |
@@ -17,8 +14,8 @@ class UserPersionalFactorComponent { | @@ -17,8 +14,8 @@ class UserPersionalFactorComponent { | ||
17 | 14 | ||
18 | private static final Logger logger = LoggerFactory.getLogger(UserPersionalFactorComponent.class); | 15 | private static final Logger logger = LoggerFactory.getLogger(UserPersionalFactorComponent.class); |
19 | 16 | ||
20 | - @Autowired | ||
21 | - private ServiceCaller serviceCaller; | 17 | + //@Autowired |
18 | + // private ServiceCaller serviceCaller; | ||
22 | 19 | ||
23 | //serviceCaller.asyncCall("message.publishIosUser", iosTokenBO, Integer.class); | 20 | //serviceCaller.asyncCall("message.publishIosUser", iosTokenBO, Integer.class); |
24 | 21 | ||
@@ -52,12 +49,13 @@ class UserPersionalFactorComponent { | @@ -52,12 +49,13 @@ class UserPersionalFactorComponent { | ||
52 | } | 49 | } |
53 | 50 | ||
54 | private UserPersionalFactorRsp queryUserPersionalFactorRsp(int uid, String udid){ | 51 | private UserPersionalFactorRsp queryUserPersionalFactorRsp(int uid, String udid){ |
55 | - try { | ||
56 | - UserPersionalFactorReq userPersionalFactorReq = new UserPersionalFactorReq(uid,udid); | ||
57 | - return serviceCaller.call(SERVICE_NAME,userPersionalFactorReq,UserPersionalFactorRsp.class,timeOut); | ||
58 | - }catch (Exception e){ | ||
59 | - logger.error(e.getMessage(),e); | ||
60 | - return null; | ||
61 | - } | 52 | +// try { |
53 | +// UserPersionalFactorReq userPersionalFactorReq = new UserPersionalFactorReq(uid,udid); | ||
54 | +// return serviceCaller.call(SERVICE_NAME,userPersionalFactorReq,UserPersionalFactorRsp.class,timeOut); | ||
55 | +// }catch (Exception e){ | ||
56 | +// logger.error(e.getMessage(),e); | ||
57 | +// return null; | ||
58 | +// } | ||
59 | + return null; | ||
62 | } | 60 | } |
63 | } | 61 | } |
-
Please register or login to post a comment