From dce6521231f178166a631970ab1cf503d1544a6d Mon Sep 17 00:00:00 2001 From: DDSDerek <108336573+DDSDerek@users.noreply.github.com> Date: Sun, 1 Dec 2024 12:33:20 +0800 Subject: [PATCH] fix: refresh token error --- glue_python/get_folder_id/get_folder_id.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/glue_python/get_folder_id/get_folder_id.py b/glue_python/get_folder_id/get_folder_id.py index efefd6443..8b9c31614 100644 --- a/glue_python/get_folder_id/get_folder_id.py +++ b/glue_python/get_folder_id/get_folder_id.py @@ -1,6 +1,8 @@ from aligo import Aligo -ali = Aligo(refresh_token='316bb9995a2b4ac79632040687a08be2') +with open('/data/mytoken.txt', 'r') as file: + refresh_token = file.readline().strip() +ali = Aligo(refresh_token=refresh_token) # 这里默认使用资源盘 v2_user = ali.v2_user_get()