From 23f940c70143f2aafc04d835e7def85d9090c638 Mon Sep 17 00:00:00 2001 From: ngfchl Date: Sat, 28 Jan 2023 23:39:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=AB=99=E7=82=B9=E4=B8=8D=E5=86=8D=E9=9C=80=E8=A6=81passkey?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8D=EF=BC=9A=E5=88=A0=E9=99=A4=E7=AB=99?= =?UTF-8?q?=E7=82=B9=E4=BF=A1=E6=81=AF=E6=88=90=E5=8A=9F=E4=BD=86=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=87=BA=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto_pt/views.py | 4 ++-- templates/auto_pt/status.html | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/auto_pt/views.py b/auto_pt/views.py index 30ef29e..a678032 100644 --- a/auto_pt/views.py +++ b/auto_pt/views.py @@ -1079,7 +1079,7 @@ def edit_my_site(request): my_site_list = MySite.objects.filter(id=my_site_id) if len(my_site_list) == 1: my_site = my_site_list.values( - 'id', 'site', 'sign_in', 'get_info', 'hr', 'search', 'user_id', 'passkey', 'user_agent', 'cookie', + 'id', 'site', 'sign_in', 'get_info', 'hr', 'search', 'user_id', 'user_agent', 'cookie', 'time_join' ).first() return JsonResponse(CommonResponse.success(data={ @@ -1097,7 +1097,7 @@ def remove_my_site(request): try: my_site = my_site_list.first().delete() logger.info(my_site) - if my_site[0] == 1: + if my_site[0] > 0: return JsonResponse(data=CommonResponse.success( msg='站点信息删除成功!' ).to_dict(), safe=False) diff --git a/templates/auto_pt/status.html b/templates/auto_pt/status.html index 088adde..abed874 100644 --- a/templates/auto_pt/status.html +++ b/templates/auto_pt/status.html @@ -632,10 +632,10 @@ placeholder="请输入数字UID,AZ,CZ,EZ,Reel,莫妮卡、普斯特等请填写用户名"> - - - +{# #} +{# #} +{# #}