-
Notifications
You must be signed in to change notification settings - Fork 149
Open
Labels
bugSomething isn't workingSomething isn't working
Description
提交前确认 / Pre-submission Checklist
- 我已查阅 官方文档,确认这不是使用方式问题 / I have checked the official docs and confirmed this is not a usage issue
- 我已在 GitHub Issues 搜索过,没有找到相同的 Bug 报告 / I have searched GitHub Issues and found no similar bug report
- 我已升级到最新版本,问题仍然存在 / I have updated to the latest version and the issue persists
问题描述 / Problem Description
使用AI记账的时候,如果是转账类别,它识别错误会识别成收入,然后计入收入类别。记账类型错误同时不论是收入还是支出识别的标签不会添加进去,只会添加内定的标签AI记账语音记账这种。
复现步骤 / Steps to Reproduce
直接使用AI记账可以看到的。
期望行为 / Expected Behavior
AI记账转账类别识别正确,标签可以正确的添加。
实际行为 / Actual Behavior
转账类别识别错误。标签不能添加。
截图 / Screenshots
No response
应用版本 / App Version
2.8.0
平台 / Platform
Android
系统版本 / OS Version
android 14
设备型号 / Device Model
No response
错误日志 / Error Logs
=== BeeCount 日志导出 ===
导出时间: 2026-01-17 20:34:00.314127
日志数量: 59
==================================================
[20:33:19.869] [INFO] [Flutter] [AIChat] 验证文本能力: Deepseek
[20:33:19.869] [DEBUG] [Flutter] [AIChat] Base URL: https://api.deepseek.com/v1
[20:33:19.869] [DEBUG] [Flutter] [AIChat] 模型: deepseek-chat
[20:33:19.869] [DEBUG] [Flutter] [AIFactory] 请求: https://api.deepseek.com/v1/chat/completions
[20:33:19.958] [INFO] [Flutter] [TransactionList] 用户交互,切换到Stream模式
[20:33:22.692] [INFO] [Flutter] [AIChat] 文本能力验证成功: Deepseek
[20:33:31.681] [INFO] [Flutter] [AIChat] 当前账本ID: 1
[20:33:31.681] [INFO] [Flutter] [AIChat] 收到消息: 取现8000 (forceChat: false)
[20:33:31.682] [DEBUG] [Flutter] [AIChat] 识别为记账意图
[20:33:31.682] [DEBUG] [Flutter] [AIChat] 识别为记账意图
[20:33:31.683] [INFO] [Flutter] [AIBillService] 初始化完成
[20:33:31.685] [DEBUG] [Flutter] [BillExtraction] 提取文本账单,prompt长度: 3774
[20:33:31.686] [DEBUG] [Flutter] [BillExtraction] 发起文本对话 (Deepseek, 模型: deepseek-chat)
[20:33:31.687] [DEBUG] [Flutter] [AIFactory] 请求: https://api.deepseek.com/v1/chat/completions
[20:33:35.289] [DEBUG] [Flutter] [BillExtraction] 原始响应:
{
"amount": 8000,
"time": "2026-01-17T20:33:00",
"note": "取现",
"category": "转账",
"type": "transfer",
"tag": "自己",
"account": "零钱包",
"from_account": "建行借记卡",
"to_account": "零钱包"
}
[20:33:35.290] [INFO] [Flutter] [BillExtraction] 账单提取成功: BillInfo(amount: 8000.0, time: 2026-01-17 20:33:00.000, note: 取现, category: 转账, type: null, account: 零钱包)
[20:33:35.290] [INFO] [Flutter] [AIChat] 账单提取成功: {amount: 8000.0, time: 2026-01-17T20:33:00.000, note: 取现, category: 转账, type: null, account: 零钱包, ledgerId: null, confidence: 0.8}
[20:33:35.290] [INFO] [Flutter] [AIChat] 附加账本ID到BillInfo: ledgerId=1
[20:33:35.291] [INFO] [Flutter] [AIChat] 开始保存账单: amount=8000.0, category=转账, ledgerId=1
[20:33:35.291] [INFO] [Flutter] [AIChat] 使用指定账本ID: 1
[20:33:35.292] [DEBUG] [Flutter] [BillCreation] [类型判断] AI识别 → 收入
[20:33:35.305] [DEBUG] [Flutter] [BillCreation] [分类匹配] AI分类"转账"未找到匹配,降级使用规则匹配
[20:33:35.307] [DEBUG] [Flutter] [BillCreation] [分类兜底] 使用"其他报销"(ID:302)
[20:33:35.312] [DEBUG] [Flutter] [BillCreation] [账户匹配-完全] "零钱包" → 零钱包(ID:11)
[20:33:35.655] [DEBUG] [Flutter] [BillCreation] [标签] 使用已有标签: AI记账 (ID:17)
[20:33:35.717] [INFO] [Flutter] [BillCreation] [标签] 已为交易 8068 添加 1 个标签
[20:33:35.717] [INFO] [Flutter] [BillCreation] [自动记账] 成功 | ID:8068 | 8000.0元 | 收入 | 分类:其他报销 | 账户:零钱包 | 时间:2026-01-17 20:33 | 备注:取现 | 标签:ai
[20:33:35.940] [INFO] [Flutter] [AIChat] 记账成功: id=8068, category=其他报销, account=零钱包
[20:33:35.948] [INFO] [Flutter] [CloudSync] 标记本地变更: 1
[20:33:35.948] [INFO] [Flutter] [AIChat] 记账成功,已刷新统计信息和触发云同步
[20:33:35.953] [INFO] [Flutter] [AllAccountsTotalStats] 使用的 Repository 类型: LocalRepository
[20:33:35.953] [INFO] [Flutter] [AllAccountStats] 使用的 Repository 类型: LocalRepository
[20:33:35.954] [DEBUG] [Flutter] [TransactionsJson] 开始导出账本 1
[20:33:35.955] [INFO] [Flutter] [CloudSync] 开始上传账本 1
[20:33:35.956] [DEBUG] [Flutter] [TransactionsJson] 开始导出账本 1
[20:33:36.248] [DEBUG] [Flutter] [TransactionsJson] 账本 1 共有 8059 条交易
[20:33:36.303] [DEBUG] [Flutter] [TransactionsJson] 账本 1 共有 8059 条交易
[20:33:36.738] [INFO] [Flutter] [AllAccountsTotalStats] 总余额: 925118.68, 总支出: 1719252.1600000027, 总收入: 2644370.840000001
[20:33:36.944] [DEBUG] [Flutter] [TransactionsJson] 导出完成: 8059 条交易, 151 个分类
[20:33:37.077] [INFO] [Flutter] [CloudSync] 获取同步状态: 1
[20:33:37.078] [INFO] [Flutter] [CloudSync] Getting sync status: ledger_1.json (forceRefresh: true)
[20:33:37.079] [DEBUG] [Flutter] [TransactionsJson] 开始导出账本 1
[20:33:37.085] [DEBUG] [Flutter] [TransactionsJson] 导出完成: 8059 条交易, 151 个分类
[20:33:37.217] [INFO] [Flutter] [CloudSync] Starting upload: ledger_1.json
[20:33:37.218] [DEBUG] [Flutter] [TransactionsJson] 开始导出账本 1
[20:33:37.237] [DEBUG] [Flutter] [TransactionsJson] 账本 1 共有 8059 条交易
[20:33:37.319] [DEBUG] [Flutter] [TransactionsJson] 账本 1 共有 8059 条交易
[20:33:37.397] [INFO] [Flutter] [AllAccountStats] 获取到 29 个账户的统计数据
[20:33:37.542] [DEBUG] [Flutter] [TransactionsJson] 导出完成: 8059 条交易, 151 个分类
[20:33:37.713] [INFO] [Flutter] [CloudSync] Local fingerprint: 73a93275fd6058a25bde4ccbd635fef787f649bf97684ef8d2929f9363d5c61c, count: 8059
[20:33:37.714] [DEBUG] [Flutter] [TransactionsJson] 导出完成: 8059 条交易, 151 个分类
[20:33:37.740] [INFO] [Flutter] [CloudSync] Data serialized: 1396539 bytes
[20:33:37.827] [INFO] [Flutter] [CloudSync] Fingerprint: 73a93275fd6058a25bde4ccbd635fef787f649bf97684ef8d2929f9363d5c61c
[20:33:39.686] [INFO] [Flutter] [CloudSync] Cloud fingerprint: f96e12f8e38801a842ff2eb403aa4f8b5b3550582c59dc9e1d205712838893ca, count: 8058, updatedAt: 2026-01-17 12:17:06.002693Z
[20:33:39.687] [INFO] [Flutter] [CloudSync] Sync status: SyncState.outOfSync
[20:33:39.687] [INFO] [Flutter] [CloudSync] 同步状态: 1 -> SyncDiff.localNewer
[20:33:39.704] [INFO] [Flutter] [CloudSync] Upload completed: ledger_1.json
[20:33:39.705] [INFO] [Flutter] [CloudSync] 上传完成: 1
[20:33:39.705] [INFO] [Flutter] [PostProcessor] 后台同步完成 | Data: ledgerId=1补充信息 / Additional Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working