feat(v2): 完善配置中心与可替换轨迹质检并联动预审依据
This commit is contained in:
@@ -331,7 +331,7 @@ def business_command(payload: CommandInput, request: Request):
|
||||
source = next((r for r in project_body["runs"] if r.get("run_kind", "pre_review") == run_kind and r["status"] in ("completed", "partial")), None)
|
||||
if not source:
|
||||
raise HTTPException(409, "请先完成对应的mini-openclaw运行")
|
||||
template_id = "template.independent-review" if current_role == "reviewer" else "template.ai-pre-review"
|
||||
template_id = source.get("report_template") or ("template.independent-review" if current_role == "reviewer" else "template.ai-pre-review")
|
||||
report_body = translate(lambda: svc.create_report(payload.project_id, source["id"], request.state.identity["id"], template_id, key))
|
||||
return {"intent": "create_report", "message": "报告草稿已生成,来源版本已冻结。", "object_id": report_body["id"], "url": f"/xingbang-workbench?project={payload.project_id}&report={report_body['id']}"}
|
||||
if "提交" in message and "评审" in message:
|
||||
|
||||
Reference in New Issue
Block a user