Commit Graph

37 Commits

Author SHA1 Message Date
zzh
991ad49255 fix(微信): 加固 GET 验签,直接输出 echostr 原文
- 从 Query 读取 signature/timestamp/nonce/echostr 并记录失败原因

- 验签通过后 WriteAsync 写回 echostr,避免 JSON 包装

- 补充生产 Token 验签集成测试

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 13:43:42 +08:00
zzh
da1227d8aa feat(微信): 消息推送支持明文 XML/JSON 验签与回包
- POST /apiwechat/verification 恢复消息回调,支持 JSON/XML 明文包体

- SHA1 验签通过后 GET 原样返回 echostr,POST 无回复时返回 success

- 补充官方验签示例与 JSON/XML 推送集成测试

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 12:52:43 +08:00
zzh
6c2e095196 fix(微信): 验签接口仅保留 GET 并原样返回 echostr
- /apiwechat/verification 移除 HEAD/POST,仅保留 GET 验签

- 验签通过后从 Query 原样返回 echostr 纯文本

- 扫码回调测试改走 /wechat/mp/{appId}

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 12:30:42 +08:00
zzh
0a5bd75618 feat: 新增财务应收应付接口并补充 Swagger 接口名称
- 新增 Finance 模块应收应付分页查询及订单费用联查

- 为 DataPerm、Xhs 等缺失接口补充中文 summary 接口名称

- 优化微信公众号验签 Swagger 命名并补充路由集成测试

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 12:15:15 +08:00
zzh
c442833d9c feat(数据权限): 实现 P1 后端 API、有效范围合并与订单列表集成
- 新增 DataPerm 模块(配置 CRUD、模板、字段脱敏、变更/访问日志 API)及 SQL 脚本
- 订单列表/导出接入 EffectiveScopeBuilder 五维数据权限过滤
- 修复集成测试 JSON 反序列化与 RBAC 用户名解析;新增 DataPerm API 集成测试

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-03 10:27:37 +08:00
zzh
02cb06b86c feat(wechat): 完善扫码登录缓存账号信息与轮询状态接口
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 15:51:59 +08:00
zzh
bf81f00c91 fix(wechat): 注册失败时返回中文错误并校验 RBAC 账号
避免 user 表重复写入抛出英文 DbUpdateException;注册前检查 RBAC 登录账号/邮箱是否已占用。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 15:08:24 +08:00
zzh
4d93a9b50d fix(wechat): 注册 OAuth/绑定 API 未注册导致 404
将 WeChatCustomerService 纳入动态 API 映射,暴露 /wechat/oauth/user-info 等 H5 接口。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 14:51:47 +08:00
zzh
76ff60e793 fix(wechat): 验签接口支持 HEAD 并避免配置异常返回非 200
微信后台/探活对 HEAD 会收到 405;读取 wechat_mp 配置异常时改为 HTTP 200 + error,与 WMS 行为一致。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 12:15:25 +08:00
zzh
7257bf869e fix(wechat): 创建二维码 POST 改用 StringContent 避免微信 412
PostAsJsonAsync 可能走 chunked 传输缺少 Content-Length,微信网关直接返回 HTTP 412 空响应。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 11:49:12 +08:00
zzh
8ef9a43f76 feat(wechat): 将 access_token 持久化到 t_system_other_config
改用数据库存储 token 并支持 AppId/Secret 变更时自动清空,替代内存缓存并增加无效 token 重试。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 11:03:36 +08:00
zzh
5c6c4f6e48 feat(wechat): 公众号配置改从 t_system_other_config 读取,支持后台其他配置维护
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-01 16:18:43 +08:00
zzh
d168a21e96 fix(wechat): 公众号验签接口始终返回 HTTP 200,避免 BusinessException 导致非 200
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-01 15:25:20 +08:00
zzh
1b8a5af807 配置微信公众号本地开发参数:补充 AppId 与 Token,支持 apiwechat/verification 验签联调。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-01 13:50:31 +08:00
zzh
ffaf325563 fix(xhs): repair publish/task list SQL and RBAC menu seeds
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-30 11:23:37 +08:00
zzh
af53c48f7f feat: 新增小红书模块后端(Agent/任务/发布/分析/技能/AI)及 SQL 种子与 RBAC GUID 修复脚本
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-30 09:43:09 +08:00
zzh
42b41e68c7 fix: 微信回调路由挂到 AuthService 以修复 404
Fake 框架未注册 SimpleAdmin.Api.WeChat 下的 ApplicationService,
将 /apiwechat/verification 等公众号验签与消息接口并入 AuthService。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 20:46:49 +08:00
zzh
26ccc69dc6 feat: 兼容 WMS 公众号回调路径 /apiwechat/verification
支持公众平台配置 oms.nanafa.com/api/apiwechat/verification 的验签与消息推送。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 20:27:07 +08:00
zzh
e875f0c012 feat: price-check by cargo type and warehouse, customer auto-code, track apiCode
Support multi cargo-type and warehouse combinations in price check billing. Auto-generate customer codes (W+yyMM+seq) on create/register; require email. Use order DownstreamSupplierCode as track UpsertSmallBag apiCode.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 18:40:10 +08:00
zzh
545f0825f8 feat(order): 规则快照下游元数据、订单绑定字段与系统其他配置
排货发布 enrich Providers 并确认渠道时写入 t_order 下游四字段;接入 itfx 元数据客户端;系统其他配置与小包轨迹 DB 配置;手动轨迹 UpsertSmallBag 接口。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 11:31:15 +08:00
zzh
12ee25ad57 build 2026-06-25 17:47:46 +08:00
zzh
1c5a38ad73 微信登录和创建应收和应付费用 2026-06-24 17:00:35 +08:00
c1219e0238 ok 2026-06-10 17:57:43 +08:00
dab31a7c8f fix:audit 2026-06-10 10:30:41 +08:00
73d4d112a2 1 2026-06-09 15:37:56 +08:00
20b95da384 1 2026-06-09 15:37:52 +08:00
96724376a6 feat: new 2026-04-29 09:38:07 +08:00
6458ab89ba fix 2026-04-22 17:48:05 +08:00
4fa45b6944 ai-fix:proxy https police? 2026-04-17 11:25:50 +08:00
2e65ea4ee7 feat:remarks 2026-04-17 11:09:01 +08:00
829af8c576 upgrade 2026-04-16 17:22:58 +08:00
a4e73283af append 2026-04-15 17:05:30 +08:00
b912c5b159 feat: remarks 2026-04-15 16:50:57 +08:00
91a8ccdecb ai-init 2026-04-15 15:25:38 +08:00
b1520cfebf feat: add consul kv 2026-03-20 15:48:22 +08:00
85627807eb add fei shu 2026-03-20 15:42:08 +08:00
5b8fa4a577 move 2026-03-20 15:40:25 +08:00