From 44e4f03957e8447c7933025c9ee92fc1db2b4c38 Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 17 Apr 2026 12:04:35 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E8=A1=A5=E5=85=85=E5=BE=AE=E4=BF=A1=20?= =?UTF-8?q?JSSDK=20=E9=85=8D=E7=BD=AE=E6=8E=A5=E5=8F=A3=20OpenAPI=20?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- docs/admin-openapi.yaml | 68 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/docs/admin-openapi.yaml b/docs/admin-openapi.yaml index 5c7c414..ac2755f 100644 --- a/docs/admin-openapi.yaml +++ b/docs/admin-openapi.yaml @@ -4514,6 +4514,21 @@ components: description: 总数 type: integer type: object + DtoJSSDKConfigResponse: + properties: + app_id: + description: 公众号 AppID + type: string + nonce_str: + description: 随机字符串 + type: string + signature: + description: 签名(SHA1) + type: string + timestamp: + description: 时间戳(秒) + type: integer + type: object DtoLinkedPackageInfo: properties: force_recharge_amount: @@ -23900,6 +23915,59 @@ paths: summary: 钱包流水列表 tags: - 个人客户 - 钱包 + /api/c/v1/wechat/jssdk-config: + get: + description: 前端调用 wx.config() 初始化微信 JS-SDK 时所需的签名参数,需传入当前页面完整 URL + parameters: + - description: '当前页面完整 URL(含协议和路径,不含 # 及其后内容)' + in: query + name: url + required: true + schema: + description: '当前页面完整 URL(含协议和路径,不含 # 及其后内容)' + type: string + responses: + "200": + content: + application/json: + schema: + properties: + code: + description: 响应码 + example: 0 + type: integer + data: + $ref: '#/components/schemas/DtoJSSDKConfigResponse' + 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: 获取微信 JSSDK 签名配置 + tags: + - 个人客户 - 微信 /api/callback/alipay: post: responses: