feat: 同步今日小程序与后台迭代版本

集中提交今日 API、管理端、小程序与部署文档调整,确保 Gitea 主分支与本地最新开发版本一致。

Made-with: Cursor
This commit is contained in:
卡若
2026-04-20 11:07:55 +08:00
parent 7108f28280
commit ce55c48c64
180 changed files with 11659 additions and 6078 deletions

View File

@@ -11,7 +11,12 @@ class AiConversation extends Model
{
use SoftDelete;
protected $strict = false;
/**
* 须为 true库表字段为驼峰 userId / lastMessageAt 等。
* strict=false 时 ORM 会把属性转成 snake_case 写入,与真实列名不一致 → userId、时间戳落库为 0
* 异步 executeAssistantTurn 按 userId 查会话失败 →「会话不存在」与小程序兜底文案。
*/
protected $strict = true;
protected $name = 'ai_conversations';
protected $deleteTime = 'deletedAt';