package com.yeshi.fanli.util.taobao;
|
|
import com.yeshi.fanli.util.StringUtil;
|
import com.yeshi.fanli.util.goods.GoodsTextUtil;
|
import com.yeshi.goods.facade.dto.taobao.dataoke.DaTaoKeListTopOffDTO;
|
|
/**
|
* 大淘客线报帮助类
|
*/
|
public class DaTaoKeTipOffUtil {
|
|
/**
|
* 获取APP内的推荐语
|
*
|
* @param dto
|
* @return
|
*/
|
public static String getRecoomendDesc(DaTaoKeListTopOffDTO dto) {
|
String text = dto.getContent();
|
if (StringUtil.isNullOrEmpty(text)) {
|
text = dto.getContentCopy();
|
if (!StringUtil.isNullOrEmpty(dto.getUrls())) {
|
text = text.replaceAll("\\[.*\\]", dto.getUrls());
|
}
|
}
|
return text;
|
}
|
|
|
public static void main(String[] args) {
|
String st = "0任选6袋 9.89亓\n都市牧场无糖清新薄荷糖\n[淘口令请转链] \n清新口气,应酬约会更自信/";
|
System.out.println(st.replaceAll("\\[.*\\]", ""));
|
}
|
|
|
}
|