fix(web): solve p0 mapping, nested validation, and add health checks
这个提交包含在:
+4
-1
@@ -468,7 +468,7 @@ class WebBridge(AlgorithmBridge):
|
||||
from src.resource_slots import slot_context
|
||||
from src.security import (
|
||||
validate_endpoint_host, sanitize_output_params,
|
||||
generate_run_id, version_tracker
|
||||
generate_run_id, version_tracker, validate_critical_enums
|
||||
)
|
||||
|
||||
try:
|
||||
@@ -484,6 +484,9 @@ class WebBridge(AlgorithmBridge):
|
||||
if value is not None:
|
||||
request_params[http_field] = value
|
||||
|
||||
# 3. 业务逻辑检查:关键参数枚举校验
|
||||
validate_critical_enums(request_params)
|
||||
|
||||
# 3. 清洗输出参数(生成唯一 run_id)
|
||||
run_id = generate_run_id()
|
||||
if self.sanitize_output:
|
||||
|
||||
在新工单中引用
屏蔽一个用户