Commit 7390d67b by lzzzzl

rabbit消费测试

parent 3aa2adeb
Showing with 6 additions and 6 deletions
...@@ -122,20 +122,20 @@ func RabbitSeoSend(body string) { ...@@ -122,20 +122,20 @@ func RabbitSeoSend(body string) {
* @param * @param
* @return * @return
**/ **/
func RegxUrl(url string) (res string) { func RegxUrl(url string) (res int) {
matched1, _ := regexp.MatchString("^(https://www.ichunt)", url) matched1, _ := regexp.MatchString("^(https://www.ichunt)", url)
matched2, _ := regexp.MatchString("^(https://ly.ichunt)", url) matched2, _ := regexp.MatchString("^(https://ly.ichunt)", url)
matched3, _ := regexp.MatchString("^(https://mip.ichunt)", url) matched3, _ := regexp.MatchString("^(https://mip.ichunt)", url)
if matched1 { if matched1 {
return "main" return 1
} else if matched2 { } else if matched2 {
return "ly" return 2
} else if matched3 { } else if matched3 {
return "mip" return 3
} }
return "main" return 1
} }
/** /**
...@@ -146,7 +146,7 @@ func RegxUrl(url string) (res string) { ...@@ -146,7 +146,7 @@ func RegxUrl(url string) (res string) {
* @param * @param
* @return * @return
**/ **/
func InsertLog(urls string, status string, urlType string) { func InsertLog(urls string, status string, urlType int) {
url := strings.Split(urls, "\n") url := strings.Split(urls, "\n")
fmt.Println(len(url)) fmt.Println(len(url))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment