diff --git a/mod.ts b/mod.ts index 42751b7..15cb0ab 100644 --- a/mod.ts +++ b/mod.ts @@ -1 +1 @@ -export { App } from './src/app.ts'; \ No newline at end of file +export * from './src/app.ts'; \ No newline at end of file diff --git a/readme.md b/readme.md index a34fef7..f89bdaf 100644 --- a/readme.md +++ b/readme.md @@ -1,2 +1,9 @@ # 应用层应用 +## 整个应用的逻辑 + +用户只保留当前自己系统的 auth token。 + +当调用外部系统的时候,通过 auth token 去获取自己的对应的外部系统的 token,然后再调用外部系统的接口。 + +## \ No newline at end of file diff --git a/src/app.ts b/src/app.ts index 302c9ce..417303c 100644 --- a/src/app.ts +++ b/src/app.ts @@ -167,7 +167,7 @@ ${toolsList} return Promise.resolve(data); } return Promise.resolve({ - code: 200, + code: 404, data: { id: 'ai_response', description: 'AI 直接回复',