feat: 实现 RemoteApp 类以支持远程连接,添加初始化和重连逻辑;更新用户路由以支持获取用户信息

This commit is contained in:
2025-12-21 02:39:52 +08:00
parent 864766be4a
commit b3c5e7d68d
8 changed files with 300 additions and 166 deletions

View File

@@ -67,3 +67,16 @@ app.route({
ctx.body = responseData.data;
}).addTo(app);
app.route({
path: 'user',
key: 'me'
}).define(async (ctx) => {
const token = ctx.query.token;
const res = await assistantConfig.query.post({
path: 'user',
key: 'me',
token,
});
ctx.forward(res);
}).addTo(app);