Commit Graph

19 Commits

Author SHA1 Message Date
shijing 2c5e30480e feat: pc端的智能问答页面中,输入框中按回车发送 2026-07-22 08:51:00 +08:00
shijing 809cdbe3f1 fix:人员添加职级 2026-07-21 14:55:40 +08:00
shijing d8054366b1 feat: 2026-07-21 10:25:17 +08:00
shijing d136b05071 feat:提问词根据角色做一些调整 2026-07-15 14:03:41 +08:00
shijing e89bc896a6 feat:根据登陆人角色反馈回答 2026-07-15 13:18:37 +08:00
shijing b128b3c2ac feat:回答流式输出 2026-07-15 13:17:22 +08:00
shijing 2c9da6bf6d feat:数据分析页面展示数据报表内容 2026-07-15 13:16:28 +08:00
shijing 4a7eb906d1 chore: 移除 config.py 硬编码凭据,.env 纳入忽略
- config.py 中的 tencent/wx_mini 密钥默认值改回空串,改由 .env 提供
- .gitignore 打开 .env 与 **/.env 规则,避免再次误提交

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-15 09:19:09 +08:00
shijing a759268d88 style: 精简顶栏,仅保留 logo,并微调首页卡片内边距
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-15 09:06:36 +08:00
shijing 79508ef85c feat: 新增微信授权登录(wx.login + getPhoneNumber)
- 后端加 /api/auth/wechat-login,用 phone_code 换手机号后匹配用户表登录
- 引入 WechatMiniClient 封装 code2session / getPhoneNumber,并做 mock 兜底
- 小程序登录页加"微信授权登录"按钮,apiBase 指向 finai.ctc-zc.com:8775
- 引入 WechatSI 插件占位

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-15 09:06:31 +08:00
shijing 7214649759 feat: storage 改按日期分组,加 FastAPI 代理路由
- 上传落到 storage/YYYY/MM/DD/{uuid}.ext,storage_key 记录相对路径
- 新增 GET /api/files/{key:path} 读文件,防目录穿越;旧的扁平 key 也兼容
- temporary_url 返回 /api/files/{key},前端可直接用
- storage 目录已在 .gitignore(backend/storage/),无需再改

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-14 09:51:05 +08:00
shijing 83b3fac62c chore: 新增 update.sh 一键更新脚本
git pull -> pip install -> 前端构建 -> 重启带 SSL 的 uvicorn。
配套 .gitattributes 固定 *.sh 为 LF。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-10 16:11:28 +08:00
shijing 96241790dd feat: FastAPI 直接加载 SSL,ssl 目录纳入 gitignore
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-10 15:55:02 +08:00
shijing 6eb91076c5 fix: run.bat 错误分支加 pause;前端生产用 window.location.origin
- run.bat: :error 分支加 pause,避免创建 venv/装依赖失败时窗口一闪即关
- frontend app store: 开发用 127.0.0.1:8775,生产回落到 window.location.origin,跟后端同源直取

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-10 15:48:58 +08:00
shijing 49f1fb6089 feat: 后端服务前端 dist 并统一使用 8775 端口
- backend/app/main.py 挂载 dist/ 作为 SPA 静态资源,/assets 走 StaticFiles,其它路径回落 index.html
- 前后端 API base 统一切换到 127.0.0.1:8775,避开 8000 占用
- run.bat 自动创建/复用 backend/.venv,用 venv 启动 uvicorn
- .gitignore 忽略 backend/.venv/
- 新增 deploy/finai-backend.service

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-10 15:29:03 +08:00
shijing f3b5b05317 fix:上传.env 2026-07-10 11:24:49 +08:00
shijing bcbb3615b5 feat:仓库命名统一 2026-07-10 11:11:29 +08:00
shijing 389fe50cb9 feat:psycopg2-binary>=2.9 → psycopg[binary]>=3.1.0 2026-07-10 10:22:11 +08:00
shijing 75694b3182 chore: initial commit 2026-07-09 14:26:05 +08:00