Commit 501f2c3b by lzzzzl

rabbit消费测试

parent 522e8f66
Showing with 1 additions and 0 deletions
...@@ -156,6 +156,7 @@ func InsertLog(urls string, status string, urlType int) { ...@@ -156,6 +156,7 @@ func InsertLog(urls string, status string, urlType int) {
_, 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(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