文档更新
This commit is contained in:
30
docs/client-wechat-appid/功能总结.md
Normal file
30
docs/client-wechat-appid/功能总结.md
Normal 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
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user