From b1487957b5f95f0f62a77f92dbe37aa0fe0f5761 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 19 May 2025 10:16:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E5=96=84=E5=8F=98=E6=9B=B4?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E6=97=B6=E9=97=B4=E7=9A=84=E6=8E=A5?= =?UTF-8?q?=E5=8F=A32?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/develop/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/develop/views.py b/apps/develop/views.py index 83d5a8df..2b793a75 100755 --- a/apps/develop/views.py +++ b/apps/develop/views.py @@ -62,7 +62,7 @@ class ServerTime(APIView): 修改服务器时间 """ - command = f'date -s "{request.data["new_server_time"]}"' + command = f'date -s "{request.data["server_time"]}"' completed = subprocess.run( ["sudo", "sh", "-c", command], # 避免 shell=True 的安全风险 input=SD_PWD, # 密码从安全配置读取