From 9200d9f20a9a20a0862d74c1f3eff860624bc4ce Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 3 Jul 2026 10:45:36 +0800 Subject: [PATCH] bugfix --- wwwroot/api/llm_update.dspy | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wwwroot/api/llm_update.dspy b/wwwroot/api/llm_update.dspy index 9d5d712..42b7e57 100644 --- a/wwwroot/api/llm_update.dspy +++ b/wwwroot/api/llm_update.dspy @@ -9,11 +9,10 @@ try: data.pop('page', None) data.pop('rows', None) data.pop('data_filter', None) - record_id = data.pop('id', None) - if not record_id: + if not data.get('id'): result['message'] = '缺少id' else: - await sor.U('llm', data, {'id': record_id}) + await sor.U('llm', data.copy()) result['success'] = True result['message'] = '更新成功' except Exception as e: