From a3a0bc88687b43e612c537eb6b4abcc19b01cd54 Mon Sep 17 00:00:00 2001 From: thug0bin Date: Fri, 27 Feb 2026 16:23:26 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=B9=B4=EC=B9=B4=EC=98=A4=20=EC=9D=B8?= =?UTF-8?q?=EC=A6=9D=20=EC=97=AC=EB=B6=80=20=EB=B1=83=EC=A7=80=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - API에 is_kakao_verified 필드 추가 (nickname != '고객') - 사용자 상세 모달에 카카오 노란 뱃지 표시 - 검색 결과 목록에도 뱃지 표시 - 미인증 회원은 회색 '미인증' 뱃지 --- backend/app.py | 6 ++++-- backend/templates/admin.html | 10 ++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/backend/app.py b/backend/app.py index fd96c02..a3ff3ca 100644 --- a/backend/app.py +++ b/backend/app.py @@ -1388,7 +1388,8 @@ def admin_user_detail(user_id): 'name': user['nickname'], 'phone': user['phone'], 'balance': user['mileage_balance'], - 'created_at': utc_to_kst_str(user['created_at']) + 'created_at': utc_to_kst_str(user['created_at']), + 'is_kakao_verified': user['nickname'] != '고객' # 카카오 인증 여부 }, 'mileage_history': [ { @@ -1474,7 +1475,8 @@ def admin_search_user(): 'id': row['id'], 'name': row['nickname'], 'phone': row['phone'], - 'balance': row['mileage_balance'] + 'balance': row['mileage_balance'], + 'is_kakao_verified': row['nickname'] != '고객' # 카카오 인증 여부 } for row in results] return jsonify({ diff --git a/backend/templates/admin.html b/backend/templates/admin.html index b7602a9..1115bb6 100644 --- a/backend/templates/admin.html +++ b/backend/templates/admin.html @@ -849,7 +849,10 @@
이름
-
${user.name}
+
+ ${user.name} + ${user.is_kakao_verified ? '💬카카오' : '미인증'} +
전화번호
@@ -1303,9 +1306,12 @@ `; users.forEach(user => { + const kakaoBadge = user.is_kakao_verified + ? '💬' + : '미인증'; html += ` - ${user.name} + ${user.name}${kakaoBadge} ${user.phone} ${user.balance.toLocaleString()}P