定时调外部任务开启api
This commit is contained in:
23
check_configs.py
Normal file
23
check_configs.py
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env python3
|
||||
"""简化的API列表测试"""
|
||||
|
||||
import sys
|
||||
import os
|
||||
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
from api_config import API_CONFIG
|
||||
|
||||
def check_api_configs():
|
||||
"""检查配置文件中的API配置"""
|
||||
print("配置文件中的API配置列表:")
|
||||
print("=" * 30)
|
||||
|
||||
for api_name, api_config in API_CONFIG.items():
|
||||
print(f"🔧 {api_name}:")
|
||||
print(f" URL: {api_config['url']}")
|
||||
print(f" Method: {api_config['method']}")
|
||||
print(f" Timeout: {api_config['timeout']}")
|
||||
print()
|
||||
|
||||
if __name__ == "__main__":
|
||||
check_api_configs()
|
||||
Reference in New Issue
Block a user