admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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("\\[.*\\]", ""));
    }
 
 
}