Browse Source

更新蜜源数据采集

master
huangjiajun 11 months ago
parent
commit
2d59d4c9c1
2 changed files with 3 additions and 0 deletions
  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 View File

@@ -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 View File

@@ -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


Loading…
Cancel
Save