Commit 02145bb8 by lzzzzl

rabbit消费测试

parent 7390d67b
Showing with 1 additions and 0 deletions
......@@ -150,6 +150,7 @@ func InsertLog(urls string, status string, urlType int) {
url := strings.Split(urls, "\n")
fmt.Println(len(url))
fmt.Println(url)
for i := 0; i < len(url); i++ {
_, err1 := db.SeoDB.Exec("INSERT INTO lie_url_log (url,status,url_type,create_time) VALUES (?,?,?,?)",
url[i], status, urlType, time.Now().Unix())
......
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