From 18cdc39719be63895e0d353240cc9766b601b2a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=B0=A7?= Date: Wed, 4 Jun 2025 09:16:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B2=A1=E6=9C=89=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=A0=81=E6=97=B6=E9=BB=98=E8=AE=A4=E4=B8=BA200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_base/decorators/api_log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_base/decorators/api_log.py b/sf_base/decorators/api_log.py index 05cae1da..634e0aed 100644 --- a/sf_base/decorators/api_log.py +++ b/sf_base/decorators/api_log.py @@ -36,7 +36,7 @@ def api_log(name=None, requester=None): response_time = (end_time - start_time).total_seconds() # 获取响应状态 - status = result.get('code') if 'code' in result else result.get('ErrorCode') if 'ErrorCode' in result else 500 + status = result.get('code') if 'code' in result else result.get('ErrorCode') if 'ErrorCode' in result else 200 # 创建日志记录 log_vals = {