feat: 카카오 인증 여부 뱃지 추가
- API에 is_kakao_verified 필드 추가 (nickname != '고객') - 사용자 상세 모달에 카카오 노란 뱃지 표시 - 검색 결과 목록에도 뱃지 표시 - 미인증 회원은 회색 '미인증' 뱃지
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user