chore: 优化支付提供者插件位置

This commit is contained in:
xiaojunnuo
2026-01-05 23:04:07 +08:00
parent 7ee39fd4ed
commit e500af1ed4
9 changed files with 525 additions and 136 deletions
@@ -1,6 +1,7 @@
import { Autoload, Init, Inject, Scope, ScopeEnum } from "@midwayjs/core";
import { logger } from "@certd/basic";
import { PluginService } from "../plugin/service/plugin-service.js";
import { registerPaymentProviders } from "../suite/payments/index.js";
@Autoload()
@Scope(ScopeEnum.Request, { allowDowngrade: true })
@@ -19,6 +20,8 @@ export class AutoBLoadPlugins {
}
// await import("../../plugins/index.js")
await this.pluginService.registerFromDb()
await registerPaymentProviders();
logger.info(`加载插件完成,加载模式:${process.env.certd_plugin_loadmode}`);
}