前后端更新

This commit is contained in:
super committed 2026-03-04 22:55:36 +08:00
1 parent a0c8721fbb
commit 24da604727
33 files changed
+1951 -580

No files matched your search

+3 -3
View File
@@ -84,9 +84,9 @@ def require_agent_permission(f):
@wraps(f)
def decorated_function(*args, **kwargs):
# 从 JSON 请求体中解析数据
data = request.get_json() or {}
# 获取 agent_id
agent_id = data.get('agent_id')
data = request.get_json(silent=True) or {}
# 获取 agent_id (优先从 Body,其次从 Query)
agent_id = data.get('agent_id') or request.args.get('agent_id')
# 如果未提供 agent_id,则返回 400 错误
if not agent_id: