|
@@ -392,6 +392,12 @@ type EdbInfoData struct {
|
|
|
}
|
|
|
|
|
|
func SyncShangHaiSmm(cont context.Context) (err error) {
|
|
|
+ utils.FileLog.Info("上海有色爬虫开始更新")
|
|
|
+ defer func() {
|
|
|
+ if err := recover(); err != nil {
|
|
|
+ utils.FileLog.Error("上海有色爬虫更新失败:%+v", err)
|
|
|
+ }
|
|
|
+ }()
|
|
|
upMonth := time.Now().AddDate(0, -1, 0).Format(utils.FormatDate)
|
|
|
curDate := time.Now().Format(utils.FormatDate)
|
|
|
reqList := make([]SmmRequest, 0)
|
|
@@ -462,6 +468,7 @@ func SyncShangHaiSmm(cont context.Context) (err error) {
|
|
|
fmt.Println("上海有色爬虫更新失败")
|
|
|
return
|
|
|
}
|
|
|
+ utils.FileLog.Info("上海有色爬虫开始更新")
|
|
|
return
|
|
|
}
|
|
|
|