|
|
package com.yohoufo.product.helper;
|
|
|
|
|
|
import com.yohoufo.common.constant.BusinessClientEnum;
|
|
|
import com.yohoufo.common.utils.AppVersion;
|
|
|
import com.yohoufo.product.request.ProductSearchReq;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
...
|
...
|
@@ -45,7 +46,9 @@ public class SearchHelpService { |
|
|
* @return
|
|
|
*/
|
|
|
public void setContainYoho(String appVersion, ProductSearchReq req) {
|
|
|
if(StringUtils.isNotBlank(appVersion) && AppVersion.of(appVersion).greaterThanOrEquals(AppVersion.of("6.8.5"))){
|
|
|
// 闲鱼请求不能含YOHO
|
|
|
if(StringUtils.isNotBlank(appVersion) && AppVersion.of(appVersion).greaterThanOrEquals(AppVersion.of("6.8.5"))
|
|
|
&& !BusinessClientEnum.isXianYu(req.getBusinessClient())){
|
|
|
req.setContainYoho("Y");
|
|
|
}
|
|
|
}
|
...
|
...
|
|