From 67b38bc408267bb17a59889b65da33f8c1a2f419 Mon Sep 17 00:00:00 2001 From: 732642856 <732642856@qq.com> Date: Fri, 12 Jun 2026 14:35:57 +0800 Subject: [PATCH] =?UTF-8?q?v6.9.5:=20=E4=BF=AE=E5=A4=8D=20Python=20API=20?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=98=A0=E5=B0=84=20=E2=80=94=20birth?= =?UTF-8?q?=E2=86=92birth=5Finfo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jyotish-app/api-bridge.js | 4 ++++ jyotish-app/public/api-bridge.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/jyotish-app/api-bridge.js b/jyotish-app/api-bridge.js index 809f45d2..08af1bb2 100644 --- a/jyotish-app/api-bridge.js +++ b/jyotish-app/api-bridge.js @@ -22,6 +22,10 @@ async function computeWithPython(birthData) { const data = await resp.json(); if (data.success) { console.log('[Compute] ✅ Python API v' + data.version); + // Python API返回 'birth',统一转为JS引擎的 'birth_info' 格式 + if (data.birth && !data.birth_info) { + data.birth_info = data.birth; + } return data; } } catch(e) { diff --git a/jyotish-app/public/api-bridge.js b/jyotish-app/public/api-bridge.js index 809f45d2..08af1bb2 100644 --- a/jyotish-app/public/api-bridge.js +++ b/jyotish-app/public/api-bridge.js @@ -22,6 +22,10 @@ async function computeWithPython(birthData) { const data = await resp.json(); if (data.success) { console.log('[Compute] ✅ Python API v' + data.version); + // Python API返回 'birth',统一转为JS引擎的 'birth_info' 格式 + if (data.birth && !data.birth_info) { + data.birth_info = data.birth; + } return data; } } catch(e) {