|
@@ -65,7 +65,8 @@ func DataCollectCronMiyuanRealNews(types int) { |
|
|
} |
|
|
} |
|
|
func To(str, str1, str2 string) string { |
|
|
func To(str, str1, str2 string) string { |
|
|
tmp := strings.Split(str, str1) |
|
|
tmp := strings.Split(str, str1) |
|
|
if len(tmp) > 0 { |
|
|
|
|
|
|
|
|
if len(tmp) > 1 { |
|
|
|
|
|
|
|
|
tmp1 := strings.Split(tmp[1], str2) |
|
|
tmp1 := strings.Split(tmp[1], str2) |
|
|
if len(tmp1) > 0 { |
|
|
if len(tmp1) > 0 { |
|
|
return tmp1[0] |
|
|
return tmp1[0] |
|
|