兼容 以- 或者 | 分割的数据.
private String[] splitTids(String tp_tid) {
return tp_tid.split("[-\\|]");
}
public static void main(String[] args) {
ProcessNotifyImpl n = new ProcessNotifyImpl();
String[] str = n.splitTids("[线下]XD14091800003|1871279782");
for(String s:str){
System.out.println(s);
}
}