diff --git a/app/task.py b/app/task.py index 1fbba31..700b9ad 100644 --- a/app/task.py +++ b/app/task.py @@ -296,6 +296,7 @@ def process_new_robot(app_id, app_secret, action_data): .log_level(lark.LogLevel.DEBUG) .build() ) + bitable_token = os.environ["OFFICE_XBOT_BITABLE_TOKEN"] if category == "optRTwYcra": robot_uuid = new_blank_robot(name, user_id) @@ -317,6 +318,5 @@ def process_new_robot(app_id, app_secret, action_data): # 更新多维表格分类管理 table_id = "tbl2GcBvkvMtOBnl" - bitable_token = os.environ["OFFICE_XBOT_BITABLE_TOKEN"] add_record(client, bitable_token, table_id, catagory_table_record)