v6.9.5: 修复 Python API 字段映射 — birth→birth_info

This commit is contained in:
732642856
2026-06-12 14:35:57 +08:00
parent 23db53268b
commit 67b38bc408
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -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) {
+4
View File
@@ -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) {