修复云端角色版 mini-openclaw 访问

This commit is contained in:
NathanAlex7
2026-09-21 12:31:35 +08:00
parent aec52ecdf6
commit 4732cee85e
7 changed files with 76 additions and 19 deletions
+1 -1
View File
@@ -313,7 +313,7 @@ def business_command(payload: CommandInput, request: Request):
message = payload.message.strip()
current_role = request.state.identity["role"]
key = request.headers.get("idempotency-key", "")
if any(word in message for word in ("预审", "评审", "检查", "复核")) and not any(word in message for word in ("查看", "还缺", "多少", "状态", "生成", "报告", "提交")):
if any(word in message for word in ("预审", "评审", "检查", "复核", "研判")) and not any(word in message for word in ("查看", "还缺", "多少", "状态", "生成", "报告", "提交")):
plan_id = "corporate.independent-review" if current_role == "reviewer" else "corporate.pre-review"
run = translate(lambda: svc.enqueue(payload.project_id, request.state.identity, message, plan_id, key, project_body["revision"]))
return {"intent": "start_run", "message": ("独立评审" if current_role == "reviewer" else "AI预审") + "已进入队列。", "object_id": run["id"], "url": f"/xingbang-workbench?project={payload.project_id}&run={run['id']}"}