diff --git a/src/core/定时任务.py b/src/core/定时任务.py index 034dc1c..0830393 100644 --- a/src/core/定时任务.py +++ b/src/core/定时任务.py @@ -14,7 +14,7 @@ def job_count(username, password): try: logger.info(f'Running job_count for username: {username}') user = get_user_by_username_and_password(username, password) - send_message(user.bot_token, user.group_id, text_count_by_user(user, get_curr_day())) + send_message(user.bot_token, user.count_group_id, text_count_by_user(user, get_curr_day())) logger.info(f'Finished job_count for username: {username}') except Exception as e: logger.error(f'Error running job_count for username: {username}, Error: {e}') @@ -42,7 +42,7 @@ def query_net_win(username, password): if __name__ == '__main__': logger.info('Starting scheduled tasks') - times = ['20:11', '14:40', '17:40', '20:40', '21:40', '23:59'] + times = ['10:50', '14:40', '17:40', '20:40', '21:40', '23:59'] for time_str in times: schedule.every().day.at(time_str).do(job_count, 'zayac', '123456') schedule.every().day.at(time_str).do(query_net_win, 'zayac', '123456')