feat: 实现 RemoteApp 类以支持远程连接,添加初始化和重连逻辑;更新用户路由以支持获取用户信息
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user