fix(remote): 上传路由修复

This commit is contained in:
2026-03-09 20:08:46 +08:00
parent 4273b3d43b
commit 88f265757c
3 changed files with 39 additions and 6 deletions

View File

@@ -120,7 +120,12 @@ class App {
this.container.register('openCodeService', (c) => {
const OpenCodeService = require('../services/opencode/OpenCodeService');
return new OpenCodeService();
const config = c.resolve('config');
const opencodeConfig = config.getSection('opencode') || {};
return new OpenCodeService({
enabled: opencodeConfig.enabled !== false,
port: opencodeConfig.port || 3002
});
});
this.container.register('giteaService', (c) => {