From d154f2c74de68bb80e7c7deb0e2e8789e6bb45ec Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Sat, 6 Sep 2025 15:43:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(api):=20=E6=B7=BB=E5=8A=A0=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E5=B1=9E=E6=80=A7=20zoom=5Fcut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在模板信息中增加了 zoom_cut 属性,用于获取模板的缩放裁剪信息。 --- util/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/util/api.py b/util/api.py index 100ad41..78d165f 100644 --- a/util/api.py +++ b/util/api.py @@ -114,6 +114,7 @@ def get_template_info(template_id): _template['source'] = "PLACEHOLDER_" + template_info.get('sourceUrl', '') _template['mute'] = template_info.get('mute', True) _template['crop_mode'] = template_info.get('cropEnable', None) + _template['zoom_cut'] = template_info.get('zoomCut', None) else: _template['source'] = None _overlays = template_info.get('overlays', '')