From 2d6ff5e11c5c0dfe3525c9e29f9849a232942ee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=81=A5?= Date: Thu, 13 Feb 2025 13:13:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=86=9C=E8=A1=8C=E5=AE=9A?= =?UTF-8?q?=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/stat/aiprice/nonghang_use.py | 4 ++-- dags/stat/dag_ai_nonghang_use.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dags/stat/aiprice/nonghang_use.py b/dags/stat/aiprice/nonghang_use.py index 548da51..c624bbe 100644 --- a/dags/stat/aiprice/nonghang_use.py +++ b/dags/stat/aiprice/nonghang_use.py @@ -24,7 +24,7 @@ headers = { "Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJhY2NvdW50IjoiYWlyZmxvdyIsImV4cCI6MTMxMzM5NDE2MzQwNDYxLCJvcmdDb2RlIjoiMDAxLjAwMSIsInJvbGVzIjpbIm5vcm1hbCJdLCJ1c2VySWQiOiIxODg5ODc0MDc4MTgxODMwNjU2IiwidXNlcm5hbWUiOiLlrprml7bku7vliqEifQ.SvD42b8XGlxYe_0dBr215ZgxR9aBdsipaySceZuuWR6g5cHelU5oc-dRtK63b0CMoN07BSvh2XYdlIzQ92ngOA" } -ret = requests.post(url='https://api.fangjia.com/usageStatisticsList', json=data, headers=headers, verify=False) +ret = requests.post(url='https://api.fangjia.com/exportStatistics', json=data, headers=headers, verify=False) #ret = requests.post(url='http://127.0.0.1:8080/exportStatistics', json=data, headers=headers, verify=False) nextcloud_aim_file_path = '共享/AI估价/农行统计' @@ -34,4 +34,4 @@ with open(file_path, 'wb') as file: file.write(ret.content) nextcloudutils.up_to_nextcloud(file_path, nextcloud_aim_file_path + "/" + "AI估价农行" + formatted_date + ".xlsx") -dingutils.send_text("[AI估价]农行" + formatted_date + "统计完成, 请点击 https://nextcloud.fangjia.com/s/WK9MzWwH5kjwMBB 查看", "f4f3b03c35c67d097f70affa27e7d47d7a1b6c0eed2438f4d8aa654834419a0b") \ No newline at end of file +dingutils.send_text("【AI估价】农行" + formatted_date + "统计完成, 请点击 https://nextcloud.fangjia.com/s/WK9MzWwH5kjwMBB 查看", "f4f3b03c35c67d097f70affa27e7d47d7a1b6c0eed2438f4d8aa654834419a0b") \ No newline at end of file diff --git a/dags/stat/dag_ai_nonghang_use.py b/dags/stat/dag_ai_nonghang_use.py index dad11e0..c70a54a 100644 --- a/dags/stat/dag_ai_nonghang_use.py +++ b/dags/stat/dag_ai_nonghang_use.py @@ -5,7 +5,7 @@ import pendulum with DAG( dag_id="ai_nonghang_use_dag", # 每天9:40 - schedule_interval="0 40 9 * * 1-5", + schedule_interval="40 9 * * 1-5", start_date=pendulum.datetime(2025, 2, 13, tz="Asia/Shanghai"), description="AI估价农行使用情况", catchup=True