From 7d08f74580833b56a234da29d9cdf2530a552e35 Mon Sep 17 00:00:00 2001 From: Certificate System Date: Thu, 13 Aug 2026 18:27:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=A1=E5=87=86=E8=AF=81=E4=B9=A6=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E6=96=87=E5=AD=97=E5=9F=BA=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/services/pdf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/app/services/pdf.py b/backend/app/services/pdf.py index edd6a9b..9546848 100644 --- a/backend/app/services/pdf.py +++ b/backend/app/services/pdf.py @@ -208,7 +208,7 @@ def render_practice_camp_certificate_image(certificate: Certificate, learner: Le (end_month, 1058), ]: draw.text( - (x * x_scale, 668 * y_scale), + (x * x_scale, 648 * y_scale), value, fill="#202020", font=font(41, "song", False, text_scale), @@ -217,7 +217,7 @@ def render_practice_camp_certificate_image(certificate: Certificate, learner: Le issue_date_text = f"{issue_year}年{issue_month}月{issue_day}日" issue_date_font = font(36, "song", False, text_scale) - issue_date_position = (568 * x_scale, 1158 * y_scale) + issue_date_position = (568 * x_scale, 1140 * y_scale) draw.rectangle( ( 442 * x_scale, @@ -362,7 +362,7 @@ def draw_issue_date_numbers( y_scale: float, ) -> None: text_font = font(13, "song", False, scale) - y = 688 * y_scale + y = 682 * y_scale for value, x in [(issue_year, 500), (issue_month, 535), (issue_day, 566)]: draw.text((x * x_scale, y), value, fill="#111111", font=text_font, anchor="mm")