3
0
chenjunhao 2 viikkoa sitten
vanhempi
sitoutus
0c93e84ebe
1 muutettua tiedostoa jossa 5 lisäystä ja 3 poistoa
  1. 5 3
      commons/scheduler.py

+ 5 - 3
commons/scheduler.py

@@ -24,7 +24,7 @@ class CrawlerScheduler:
 
         self._lock = threading.Lock()
 
-        self.heartbeat_url = 'http://pricesys2.kailin.com.cn:8082/api/collect_task/heartbeat'
+        self.heartbeat_url = 'http://pricesys2.kailin.com.cn:8083/api/collect_task/heartbeat'
         self.heartbeat_interval = heartbeat_interval
         self.end = False
         self.heartbeat_thread = None
@@ -80,8 +80,10 @@ class CrawlerScheduler:
 
     def get_task(self):
         try:
-            task_api = "http://pricesys2.kailin.com.cn:8082/api/collect_task/pull"
+            task_api = "http://pricesys2.kailin.com.cn:8083/api/collect_task/pull"
+
             headers = {'X-Crawler-Token': 'zhijiayun_crawler_2026'}
+
             params = {
                 'platform': self.platform,
                 'username': self.username
@@ -99,7 +101,7 @@ class CrawlerScheduler:
 
     def post_report(self, data):
         try:
-            url = "http://pricesys2.kailin.com.cn:8082/api/collect_task/report"
+            url = "http://pricesys2.kailin.com.cn:8083/api/collect_task/report"
             print('传给返回接口的数据', data)
             logger.info(f'report上传数据:{data}')
             headers = {'X-Crawler-Token': 'zhijiayun_crawler_2026'}