From 467c0e91aab5d3eeba324886fdf2960d7ae82990 Mon Sep 17 00:00:00 2001 From: thug0bin Date: Tue, 3 Mar 2026 00:46:27 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20AI=20=EC=B6=94=EC=B2=9C=20=EC=9D=B4?= =?UTF-8?q?=EB=AF=B8=EC=A7=80=20=ED=95=B4=EC=83=81=EB=8F=84=20=EB=B0=8F=20?= =?UTF-8?q?=EC=8A=A4=ED=83=80=EC=9D=BC=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 썸네일(3KB) 대신 원본 이미지(33KB) 사용 - 테두리/배경 제거로 깔끔한 디자인 - text-align:center로 중앙 정렬 - 최대 크기 140px --- backend/app.py | 8 ++++---- backend/templates/my_page.html | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/backend/app.py b/backend/app.py index c8f2238..4bac9ef 100644 --- a/backend/app.py +++ b/backend/app.py @@ -2421,15 +2421,15 @@ def api_get_recommendation(user_id): product_name = rec['recommended_product'] logging.info(f"[AI추천] 검색할 제품명: {product_name}") - # 제품명으로 이미지 검색 (LIKE 검색으로 부분 매칭) + # 제품명으로 이미지 검색 (LIKE 검색으로 부분 매칭) - 원본 이미지 사용 img_cursor.execute(""" - SELECT thumbnail_base64 FROM product_images - WHERE product_name LIKE ? AND thumbnail_base64 IS NOT NULL + SELECT image_base64 FROM product_images + WHERE product_name LIKE ? AND image_base64 IS NOT NULL LIMIT 1 """, (f'%{product_name}%',)) img_row = img_cursor.fetchone() if img_row: - product_image = img_row['thumbnail_base64'] + product_image = img_row['image_base64'] logging.info(f"[AI추천] 이미지 찾음: {len(product_image)} bytes") else: logging.info(f"[AI추천] 이미지 없음 (제품: {product_name})") diff --git a/backend/templates/my_page.html b/backend/templates/my_page.html index 3886d34..51a6ff1 100644 --- a/backend/templates/my_page.html +++ b/backend/templates/my_page.html @@ -466,9 +466,9 @@
-
- -
💊
+
+ +
💊