Browse Source

刚刚都传——修改日志——2023/10/20

罗俊辉 1 year ago
parent
commit
6c2f13f2fc

+ 2 - 1
ganggangdouchuan/ganggangdouchuan_recommend/ganggangdouchuan_recommend2.py

@@ -148,7 +148,8 @@ class GGDCScheduling:
                 result = json.loads(decrypted_data)
                 break
             except:
-                print("编码不对,解密失败, 等待10秒钟")
+                Common.logger(self.log_type, self.crawler).info("编码不对,解密失败, 等待10秒钟后重试\n")
+                # print("编码不对,解密失败, 等待10秒钟")
                 time.sleep(10)
 
         if "totalCount" not in result or response.status_code != 200: