Spaces:
Running
Running
Commit History
-
refactor: 自主实现排盘基础数据层(datas.py) — 移除第三方拷贝代码,修复空亡表甲午旬bug,新增通根透干量化(wuxing_strength)
th- datas.py/ganzhi.py/common.py 此前直接拷贝自 china-testing/bazi(含原作者署名),现改为自主实现 - 十神表(ten_deities)改为按五行生克+阴阳同异规则实时计算,不再是手抄表 - 空亡(empties)改为六十甲子算法计算,顺带修复原表"甲午旬→辰己"的错误(己是天干,应为地支"巳") - 藏干/纳音/神煞表按传统权重重新组织,均为公共古籍常识,非任何单一作者原创表达 - bazi_calculator.py 新增 _calculate_wuxing_strength: 通根透干量化打分(天干40分/藏干70:30或60:30:10加权/月令双计), 帮身占比自定义解读带宽(<35% weak / 35-65% balanced / >65% strong) - 删除未使用的 common.py(死代码,全仓库零引用) - 已验证: test_local/test_dayun_api/test_genju_api 全过,四柱与大运输出与改动前一致 🦊 Generated with Sisic164600
-
feat: 添加《滴天髓》经典知识库,提升AI解读深度
th +1: Sisi the Fox- 新增 ditianshi_knowledge.py 知识库文件 - 包含十天干详解(原文+任铁樵注+深层解读) - 包含官杀六格、何知章断语、五行性情论 - 整合到 ai_interpreter.py 性格解读模块 - 解读内容增加经典原文引用,更具权威性 🦊 Generated with Sisi Co-Authored-By: Sisi the Fox <noreply@sparksverse.com>b647f5e
-
🔮 Add Premium BaZi API - 大运/流年/神煞 Complete Fortune Analysis
th +1: Claude Sonnet 4.5Added comprehensive fortune-telling features for monetization: ✨ New Features: - Complete BaZi calculation with 大运 (Dayun - Major Cycles) - 流年 (Liunian - Yearly Cycles) for each major cycle - 神煞 (Shensha - Spiritual Forces) analysis - 纳音 (Nayin - 60 Jia Zi elements) for all periods - 十神 relationships for all cycles 📊 New API Endpoint: - POST /calculate-bazi-complete - POST /api/calculate-bazi-complete - Returns 120 years of detailed fortune data by default - Configurable number of major cycles (num_dayun parameter) 🎯 Data Structure (per major cycle): - Start/end age ranges (e.g., 7-16, 17-26 years) - Complete 干支 (Ganzhi) with elements - Nayin classifications (城头土, 涧下水, etc.) - Ten Gods relationships for gan and zhi - Spiritual forces (驿马, 桃花, 文昌, 天乙贵人, etc.) - 10 yearly cycles with full metadata 💰 Monetization Foundation: - 10-year fortune predictions - Career timing analysis - Wealth opportunity windows - Investment decision support - Comprehensive life path planning 🛠️ Techn…370af6d