ifx: fix run ERROR

This commit is contained in:
2025-12-09 14:08:42 +08:00
parent c692061b23
commit a997dad00b
4 changed files with 2446 additions and 7 deletions

View File

@@ -107,8 +107,8 @@ export class App<U = {}> {
async queryRoute(path: string, key?: string, payload?: any, ctx?: AppRouteContext<U> & { [key: string]: any }) {
return await this.router.queryRoute({ path, key, payload }, ctx);
}
async run(path: string, key?: string, payload?: any, ctx?: AppRouteContext<U> & { [key: string]: any }) {
return await this.router.run({ path, key, payload }, ctx);
async run(msg: { id?: string, path?: string; key?: string; payload?: any }, ctx?: AppRouteContext<U> & { [key: string]: any }) {
return await this.router.run(msg, ctx);
}
exportRoutes() {
return this.router.exportRoutes();