feat: 更新支付文档,添加相关支付链接并优化代码结构

This commit is contained in:
2026-01-21 00:13:40 +08:00
parent 2076ff9d2f
commit e8190fc194
5 changed files with 51 additions and 3 deletions

View File

@@ -1 +1,10 @@
开源jeepay支付 https://github.com/jeequan/jeepay # 相关链接
## 开源jeepay支付
地址 https://github.com/jeequan/jeepay
## 开源gopay支付
地址 https://github.com/go-pay/gopay
## 开源Yansongda支付
地址 https://pay.yansongda.cn/

View File

@@ -9,6 +9,7 @@
"docs:build": "vitepress build", "docs:build": "vitepress build",
"docs:preview": "vitepress preview", "docs:preview": "vitepress preview",
"postbuild": "pnpm docs:build", "postbuild": "pnpm docs:build",
"prebuild": "bun src/inline.ts",
"pub": "ev deploy .vitepress/dist -k frontend-starter-skill -v 0.0.1 -u -y y" "pub": "ev deploy .vitepress/dist -k frontend-starter-skill -v 0.0.1 -u -y y"
}, },
"keywords": [], "keywords": [],

View File

@@ -1338,9 +1338,19 @@ features:
--- ---
`; `;
export const link = `开源jeepay支付 https://github.com/jeequan/jeepay`; export const link = `# 相关链接
## 开源jeepay支付
地址 https://github.com/jeequan/jeepay
## 开源gopay支付
地址 https://github.com/go-pay/gopay
## 开源Yansongda支付
地址 https://pay.yansongda.cn/`;
export const pay_summary = `# 国内国外支付方式大合集 export const pay_summary = `# 国内国外支付方式大合集
[Github](https://github.com/chengxuyuanchuhai/chuhai-tools-all-in-one)
本指南由[程序员出海社群](https://chengxuyuanchuhai.com/)创建,版权所有。 本指南由[程序员出海社群](https://chengxuyuanchuhai.com/)创建,版权所有。

View File

@@ -6,4 +6,6 @@ import './routes/index.ts';
export const docsAgentPlugin: Plugin = createRouterAgentPluginFn({ export const docsAgentPlugin: Plugin = createRouterAgentPluginFn({
// @ts-ignore // @ts-ignore
router: app.router, router: app.router,
}); });
export { app }

View File

@@ -163,3 +163,29 @@ app.route({
}).addTo(app); }).addTo(app);
app.route({
path: 'web-todo',
key: 'help',
description: '获取资料库',
metadata: {
tags: ['opencode'],
...createSkill({
skill: 'help-web-todo',
title: '获取资料库',
summary: '根据获取的资料库提问',
args: {
question: tool.schema.string().describe('你可以问我任何关于模板的问题。'),
}
})
}
}).define(async (ctx) => {
const docsKey = Object.keys(docs);
let base = '';
for (const key of docsKey) {
if (key.includes('index')) continue;
base += `文档名称: ${key}\n内容预览: ${docs[key as keyof typeof docs].slice(0, 100)}...\n\n`;
}
ctx.body = {
content: `用户提出的问题: ${ctx.query?.question}\n\n请根据下面的资料库内容给出详细的回答:\n\n${base}`,
}
}).addTo(app);