Pārlūkot izejas kodu

更新蜜源数据采集

master
huangjiajun pirms 10 mēnešiem
vecāks
revīzija
2d59d4c9c1
2 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. +2
    -0
      app/task/svc/svc_data_collect_cron_haodanku_real_news.go
  2. +1
    -0
      app/task/svc/svc_data_collect_cron_miyuan_real_news.go

+ 2
- 0
app/task/svc/svc_data_collect_cron_haodanku_real_news.go Parādīt failu

@@ -33,6 +33,8 @@ func DataCollectCronHaodankuRealNews(types int) {
third_zm_app_secret := sysCfgDb.SysCfgGetOneData("third_zm_app_secret")
for _, v := range ids {
for i := 1; i <= num; i++ {
time.Sleep(time.Microsecond * 10) // 等待10毫秒

tianMaoChaoZhiData, err := haodanku.HaodankuRealTime(utils.IntToStr(v), utils.IntToStr(i), utils.IntToStr(size), "")
if err != nil {
return


+ 1
- 0
app/task/svc/svc_data_collect_cron_miyuan_real_news.go Parādīt failu

@@ -27,6 +27,7 @@ func DataCollectCronMiyuanRealNews(types int) {
fmt.Println("============", time.Since(now))
for _, v := range ids {
for i := 1; i <= num; i++ {
time.Sleep(time.Microsecond * 10) // 等待10毫秒
newsData, err := gzmiyuan.GetGzmiRealData(utils.IntToStr(size), utils.IntToStr(i), v)
if newsData == nil || err != nil {
continue


Notiek ielāde…
Atcelt
Saglabāt