Authored by hugufei

添加try catch

@@ -159,21 +159,26 @@ public class UserRecallResponseBuilder { @@ -159,21 +159,26 @@ public class UserRecallResponseBuilder {
159 * @return 159 * @return
160 */ 160 */
161 private boolean isLikePriceArea(int uid, List<Integer> userPriceAreas,Integer sknPriceArea){ 161 private boolean isLikePriceArea(int uid, List<Integer> userPriceAreas,Integer sknPriceArea){
162 - if(userPriceAreas==null || userPriceAreas.isEmpty()){  
163 - return false;  
164 - }  
165 - if(uid%2==1){  
166 - if(searchDynamicConfigService.isAStrategyOpen()){  
167 - return isLikePriceAreaWithAStrategy(userPriceAreas,sknPriceArea);  
168 - }else{  
169 - return isLikePriceAreaWithBStrategy(userPriceAreas,sknPriceArea); 162 + try {
  163 + if(userPriceAreas==null || userPriceAreas.isEmpty()){
  164 + return false;
170 } 165 }
171 - }else{  
172 - if(searchDynamicConfigService.isBStrategyOpen()){  
173 - return isLikePriceAreaWithBStrategy(userPriceAreas,sknPriceArea); 166 + if(uid%2==1){
  167 + if(searchDynamicConfigService.isAStrategyOpen()){
  168 + return isLikePriceAreaWithAStrategy(userPriceAreas,sknPriceArea);
  169 + }else{
  170 + return isLikePriceAreaWithBStrategy(userPriceAreas,sknPriceArea);
  171 + }
174 }else{ 172 }else{
175 - return isLikePriceAreaWithAStrategy(userPriceAreas,sknPriceArea); 173 + if(searchDynamicConfigService.isBStrategyOpen()){
  174 + return isLikePriceAreaWithBStrategy(userPriceAreas,sknPriceArea);
  175 + }else{
  176 + return isLikePriceAreaWithAStrategy(userPriceAreas,sknPriceArea);
  177 + }
176 } 178 }
  179 + }catch (Exception e){
  180 + RECALL_NEW_LOGGER.error(e.getMessage(),e);
  181 + return false;
177 } 182 }
178 } 183 }
179 184