|
@@ -14,7 +14,7 @@ class Main:
|
|
@classmethod
|
|
@classmethod
|
|
def main(cls, log_type, env):
|
|
def main(cls, log_type, env):
|
|
while True:
|
|
while True:
|
|
- if 23 >= datetime.datetime.now().now().hour >= 0:
|
|
|
|
|
|
+ if 3 >= datetime.datetime.now().now().hour >= 0:
|
|
Common.logger(log_type).info('开始抓取小程序"看到就是福气"\n')
|
|
Common.logger(log_type).info('开始抓取小程序"看到就是福气"\n')
|
|
Recommend.start_wechat(log_type, env)
|
|
Recommend.start_wechat(log_type, env)
|
|
Recommend.i = 0
|
|
Recommend.i = 0
|
|
@@ -26,4 +26,4 @@ class Main:
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
if __name__ == '__main__':
|
|
- Main.main('recommend', 'dev')
|
|
|
|
|
|
+ Main.main('recommend', 'prod')
|