Commit 7390d67b by lzzzzl

rabbit消费测试

parent 3aa2adeb
Showing with 6 additions and 6 deletions
......@@ -122,20 +122,20 @@ func RabbitSeoSend(body string) {
* @param
* @return
**/
func RegxUrl(url string) (res string) {
func RegxUrl(url string) (res int) {
matched1, _ := regexp.MatchString("^(https://www.ichunt)", url)
matched2, _ := regexp.MatchString("^(https://ly.ichunt)", url)
matched3, _ := regexp.MatchString("^(https://mip.ichunt)", url)
if matched1 {
return "main"
return 1
} else if matched2 {
return "ly"
return 2
} else if matched3 {
return "mip"
return 3
}
return "main"
return 1
}
/**
......@@ -146,7 +146,7 @@ func RegxUrl(url string) (res string) {
* @param
* @return
**/
func InsertLog(urls string, status string, urlType string) {
func InsertLog(urls string, status string, urlType int) {
url := strings.Split(urls, "\n")
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