|
@@ -48,6 +48,7 @@ class Searchkey:
|
|
|
chlsfile_list = []
|
|
|
if len(all_file) == 0:
|
|
|
Common.logger(log_type, crawler).info("chlsfile文件夹为空,等待2s")
|
|
|
+ cls.start_wechat(log_type, crawler)
|
|
|
time.sleep(2)
|
|
|
cls.get_search_key(log_type, crawler)
|
|
|
else:
|
|
@@ -58,6 +59,7 @@ class Searchkey:
|
|
|
chlsfile_list.append(file)
|
|
|
if len(chlsfile_list) == 0:
|
|
|
Common.logger(log_type, crawler).info('未找到chlsfile文件,重新获取')
|
|
|
+ cls.start_wechat(log_type, crawler)
|
|
|
cls.get_search_key(log_type, crawler)
|
|
|
else:
|
|
|
# 获取最新的 chlsfile
|