Commit 57fd31c6 by lzzzzl

删除测试输出

parent e586b1e2
Showing with 10 additions and 6 deletions
...@@ -6,6 +6,9 @@ import ( ...@@ -6,6 +6,9 @@ import (
"github.com/ichunt2019/golang-rbmq-sl/utils/rabbitmq" "github.com/ichunt2019/golang-rbmq-sl/utils/rabbitmq"
"github.com/ichunt2019/logger" "github.com/ichunt2019/logger"
"github.com/tidwall/gjson" "github.com/tidwall/gjson"
"golang.seo.server/collect/lxmain"
"golang.seo.server/collect/ly"
"golang.seo.server/collect/mip"
"golang.seo.server/common/ding" "golang.seo.server/common/ding"
"golang.seo.server/dal/db" "golang.seo.server/dal/db"
"golang.seo.server/dal/function" "golang.seo.server/dal/function"
...@@ -124,9 +127,9 @@ func main() { ...@@ -124,9 +127,9 @@ func main() {
ding.Send(util.Configs.Ding_msg.Webhook, "SEO推送", "任务启动", mobile, isAtAll) ding.Send(util.Configs.Ding_msg.Webhook, "SEO推送", "任务启动", mobile, isAtAll)
time.Sleep(time.Duration(1) * time.Hour) time.Sleep(time.Duration(1) * time.Hour)
//
//ly.RunLyTask(lyRemain, ConfigDir) ly.RunLyTask(lyRemain, ConfigDir)
//lxmain.RunMainTask(mainRemain, ConfigDir) lxmain.RunMainTask(mainRemain, ConfigDir)
//mip.RunMipTask(mipRemain, ConfigDir) mip.RunMipTask(mipRemain, ConfigDir)
} }
...@@ -146,14 +146,15 @@ func RegxUrl(url string) (res string) { ...@@ -146,14 +146,15 @@ func RegxUrl(url string) (res string) {
* @param * @param
* @return * @return
**/ **/
func InsertLog(urls string, status string, url_type string) { func InsertLog(urls string, status string, urlType string) {
url := strings.Split(urls, "\n") url := strings.Split(urls, "\n")
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, url_type, time.Now().Unix()) url[i], status, urlType, time.Now().Unix())
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")
} }
} }
} }
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