From ece913f1866b8b7ddfc80492d004e975270e8e13 Mon Sep 17 00:00:00 2001 From: ymq Date: Fri, 14 Aug 2026 13:39:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20sandbox=5Frun=20=E5=AE=A1=E8=AE=A1=20res?= =?UTF-8?q?ult=20=E7=94=A8=20rc=3D=3D0=20=E5=88=A4=E6=96=AD=EF=BC=88run=20?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=97=A0=20ok=20=E9=94=AE=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/api/deploy_account.dspy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/api/deploy_account.dspy b/wwwroot/api/deploy_account.dspy index 651dd58..54e6c4e 100644 --- a/wwwroot/api/deploy_account.dspy +++ b/wwwroot/api/deploy_account.dspy @@ -82,7 +82,7 @@ elif action == 'run': r = await run_in_work_env(sor, account_name, user_id, _org, command, workdir, timeout, network) await audit_log(sor, user_id, username, 'sandbox_run', target=account_name, detail=str(command)[:500], - result='ok' if r.get('ok') else 'fail', + result='ok' if r.get('rc') == 0 else 'fail', client_ip=client_ip) return json.dumps({'ok': True, **r}, ensure_ascii=False) except Exception as e: