文档更新

This commit is contained in:
2026-04-30 10:54:29 +08:00
parent 248ed55f4e
commit 9674e0d0d9
4 changed files with 100 additions and 1901 deletions

19
.gitignore vendored
View File

@@ -87,3 +87,22 @@ docs/admin-openapi.yaml
.opencode/skills/defuddle .opencode/skills/defuddle
# CocoIndex Code (ccc) # CocoIndex Code (ccc)
/.cocoindex_code/ /.cocoindex_code/
.omx/hud-config.json
.omx/metrics.json
.omx/setup-scope.json
.omx/cache/codebase-map.json
.omx/state/current-task-baseline.json
.omx/state/notify-fallback-authority-owner.json
.omx/state/notify-fallback-state.json
.omx/state/notify-fallback.pid
.omx/state/session.json
.omx/state/subagent-tracking.json
.omx/state/team-leader-nudge.json
.omx/state/tmux-hook-state.json
.omx/state/update-check.json
.omx/state/sessions/omx-1777517355305-tzivrd/AGENTS.md
.omx/state/sessions/omx-1777517355305-tzivrd/hud-state.json
.omx/state/sessions/omx-1777517489966-oo3g37/AGENTS.md
.omx/state/sessions/omx-1777517489966-oo3g37/hud-state.json
.omx/state/sessions/omx-1777517489966-oo3g37/notify-hook-state.json
.omx/state/tmux-extended-keys/private-tmp-tmux-501-default.json

View File

@@ -8356,6 +8356,12 @@ components:
description: 总数 description: 总数
type: integer type: integer
type: object type: object
DtoWechatAppIDResponse:
properties:
app_id:
description: 当前生效的公众号 AppID
type: string
type: object
DtoWechatConfigListResponse: DtoWechatConfigListResponse:
properties: properties:
items: items:
@@ -25442,6 +25448,51 @@ paths:
summary: 钱包流水列表 summary: 钱包流水列表
tags: tags:
- 个人客户 - 钱包 - 个人客户 - 钱包
/api/c/v1/wechat/appid:
get:
description: 用于 C 端免登录场景获取当前生效微信配置中的公众号 AppID响应仅返回 app_id 字段
responses:
"200":
content:
application/json:
schema:
properties:
code:
description: 响应码
example: 0
type: integer
data:
$ref: '#/components/schemas/DtoWechatAppIDResponse'
msg:
description: 响应消息
example: success
type: string
timestamp:
description: 时间戳
format: date-time
type: string
required:
- code
- msg
- data
- timestamp
type: object
description: 成功
"400":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: 请求参数错误
"500":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: 服务器内部错误
summary: 获取当前生效的公众号 AppID
tags:
- 个人客户 - 微信
/api/c/v1/wechat/jssdk-config: /api/c/v1/wechat/jssdk-config:
get: get:
description: 前端调用 wx.config() 初始化微信 JS-SDK 时所需的签名参数,需传入当前页面完整 URL description: 前端调用 wx.config() 初始化微信 JS-SDK 时所需的签名参数,需传入当前页面完整 URL

View File

@@ -0,0 +1,30 @@
# C 端微信 AppID 获取接口功能总结
## 功能概述
新增 C 端免登录接口 `GET /api/c/v1/wechat/appid`,用于返回当前生效微信配置中的公众号 `AppID`
## 接口行为
- 无需登录即可访问
- 统一从当前生效微信配置读取 `oa_app_id`
- 响应 `data` 中仅返回 `app_id` 字段
- 当不存在生效配置或公众号 `AppID` 为空时,返回 `微信配置不可用`
## 适用场景
- 前端在发起公众号授权前,先获取当前环境应使用的 `AppID`
- 前端在初始化微信相关能力时,避免硬编码 `AppID`
## 返回示例
```json
{
"code": 0,
"msg": "success",
"data": {
"app_id": "wx1234567890abcdef"
},
"timestamp": 1745999999
}
```

File diff suppressed because it is too large Load Diff