Commit 2e7bd7cc by lzzzzl

rabbit消费测试

parent 4c019d59
Showing with 0 additions and 2 deletions
...@@ -155,8 +155,6 @@ func InsertLog(urls string, status string, urlType int) { ...@@ -155,8 +155,6 @@ func InsertLog(urls string, status string, urlType int) {
for i := 0; i < len(url); i++ { for i := 0; i < len(url); i++ {
_, err1 := db.SeoDB.Exec("INSERT INTO lie_url_log (url,status,url_type,create_time) VALUES (?,?,?,?)", _, err1 := db.SeoDB.Exec("INSERT INTO lie_url_log (url,status,url_type,create_time) VALUES (?,?,?,?)",
url[i], status, urlType, time.Now().Unix()) url[i], status, urlType, time.Now().Unix())
fmt.Println(url[i])
fmt.Println(err1)
if err1 != nil { if err1 != nil {
logger.Fatal("数据库写入失败 url %s, status %d", url, status) logger.Fatal("数据库写入失败 url %s, status %d", url, status)
fmt.Println("wrong") fmt.Println("wrong")
......
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