Store calculation history on server with bazi input and chart snapshots.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-13 09:57:16 +08:00
parent fcf071cfaa
commit 123a5cce6d
17 changed files with 419 additions and 54 deletions
+7 -1
View File
@@ -86,12 +86,18 @@ export default function LiuyaoForm() {
},
setCompletion,
);
saveHistoryEntry({
await saveHistoryEntry({
mode: "liuyao",
title: guaData!.result.guaTitle,
question,
summary: guaData!.result.guaResult,
completion: text,
hexagram: {
guaMark: guaData!.result.guaMark,
guaTitle: guaData!.result.guaTitle,
guaResult: guaData!.result.guaResult,
guaChange: guaData!.result.guaChange,
},
meta: {
地域: location!.name,
: `${calcDate} ${calcTime}`,