From 1c055d2bfcfcdf55fb28c6eec62ed71371cc3a32 Mon Sep 17 00:00:00 2001 From: liufumingren Date: Fri, 5 Jun 2026 02:11:05 +0800 Subject: [PATCH] 1 --- src/views/store/index.vue | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/src/views/store/index.vue b/src/views/store/index.vue index b36bca4f..731a2328 100644 --- a/src/views/store/index.vue +++ b/src/views/store/index.vue @@ -656,9 +656,16 @@ - + @@ -2173,6 +2180,24 @@ async function copyEditingQimenCustomerId() { } } +function copyOpenApiConfig(row: any) { + const baseApi = String(import.meta.env.VITE_APP_BASE_API || '').replace(/\/+$/, '') + const lines: string[] = [] + lines.push('【OPEN_API 接口配置信息】') + lines.push('') + if (row.app_name) lines.push(`应用名称:${row.app_name}`) + if (row.self_app_key) lines.push(`APPKEY:${row.self_app_key}`) + if (row.self_app_secret) lines.push(`APPSECRET:${row.self_app_secret}`) + if (row.callback_url) lines.push(`回调地址:${row.callback_url}`) + lines.push('') + lines.push('开发文档:') + lines.push(` 接口文档 ${baseApi}/docs/api/openapi`) + lines.push(` 回调测试 ${baseApi}/docs/api/openapi/callback-test`) + lines.push('') + lines.push('请妥善保管以上信息,用于 API 对接。') + copyText(lines.join('\n')) +} + function openCallbackDoc() { const baseApi = String(import.meta.env.VITE_APP_BASE_API || '').replace(/\/+$/, '') window.open(`${baseApi}/docs/api/openapi/callback-test`, '_blank')