From 159386942ed61ea65403a42f7c1ae7ef9d956b65 Mon Sep 17 00:00:00 2001 From: thug0bin Date: Fri, 27 Feb 2026 16:26:35 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=8C=80=EC=8B=9C=EB=B3=B4=EB=93=9C?= =?UTF-8?q?=EC=97=90=20=EC=9D=B8=EC=A6=9D=EC=9D=BC=20=EC=BB=AC=EB=9F=BC=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 테이블 헤더에 '인증' 컬럼 추가 - 카카오 인증자: 노란 뱃지 + 인증일 (updated_at) - 미인증: 회색 '미인증' 뱃지 --- backend/app.py | 3 ++- backend/templates/admin.html | 17 +++++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/backend/app.py b/backend/app.py index a3ff3ca..9dd08ce 100644 --- a/backend/app.py +++ b/backend/app.py @@ -1840,7 +1840,7 @@ def admin(): # 최근 가입 사용자 (20명) cursor.execute(""" - SELECT id, nickname, phone, mileage_balance, created_at + SELECT id, nickname, phone, mileage_balance, created_at, updated_at FROM users ORDER BY created_at DESC LIMIT 20 @@ -1852,6 +1852,7 @@ def admin(): for user in recent_users_raw: user_dict = dict(user) user_dict['created_at'] = utc_to_kst_str(user['created_at']) + user_dict['updated_at'] = utc_to_kst_str(user['updated_at']) if user['updated_at'] else None recent_users.append(user_dict) # 최근 적립 내역 (50건) diff --git a/backend/templates/admin.html b/backend/templates/admin.html index 715dbc2..2673009 100644 --- a/backend/templates/admin.html +++ b/backend/templates/admin.html @@ -472,23 +472,24 @@ 전화번호 포인트 가입일 + 인증 {% for user in recent_users %} {{ user.id }} - - {{ user.nickname }} - {% if user.nickname != '고객' %} - 💬 - {% else %} - 미인증 - {% endif %} - + {{ user.nickname }} {{ user.phone[:3] }}-{{ user.phone[3:7] }}-{{ user.phone[7:] if user.phone|length > 7 else '' }} {{ "{:,}".format(user.mileage_balance) }}P {{ user.created_at[:16].replace('T', ' ') }} + + {% if user.nickname != '고객' %} + 💬 {{ user.updated_at[:10] if user.updated_at else '-' }} + {% else %} + 미인증 + {% endif %} + {% endfor %}