wangkun 3 년 전
부모
커밋
95dcf01e8a
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      main/run_jxxf_recommend.py

+ 2 - 1
main/run_jxxf_recommend.py

@@ -13,7 +13,8 @@ class Main:
     @classmethod
     def main(cls, log_type, env):
         while True:
-            if datetime.datetime.now().hour <= 8:
+            # if datetime.datetime.now().hour <= 8:
+            if 23 >= datetime.datetime.now().hour >= 17:
                 Common.logger(log_type).info('开始抓取"祝福大家好才是真好"\n')
                 Recommend.start_wechat(log_type, env)
                 Common.del_logs(log_type)