feat: 更新支付文档,添加相关支付链接并优化代码结构
This commit is contained in:
@@ -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/
|
||||
@@ -9,6 +9,7 @@
|
||||
"docs:build": "vitepress build",
|
||||
"docs:preview": "vitepress preview",
|
||||
"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"
|
||||
},
|
||||
"keywords": [],
|
||||
|
||||
@@ -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 = `# 国内国外支付方式大合集
|
||||
|
||||
[Github](https://github.com/chengxuyuanchuhai/chuhai-tools-all-in-one)
|
||||
|
||||
本指南由[程序员出海社群](https://chengxuyuanchuhai.com/)创建,版权所有。
|
||||
|
||||
|
||||
@@ -7,3 +7,5 @@ export const docsAgentPlugin: Plugin = createRouterAgentPluginFn({
|
||||
// @ts-ignore
|
||||
router: app.router,
|
||||
});
|
||||
|
||||
export { app }
|
||||
@@ -163,3 +163,29 @@ app.route({
|
||||
}).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);
|
||||
|
||||
Reference in New Issue
Block a user