const express = require('express'); const app = express(); const PORT = 3000; app.get('/', (req, res) => { res.send(` 测试 - 端口3000

✅ 公司财务管理系统 - 测试入口

服务器: 43.161.248.209:${PORT}

状态: 运行正常

🚀 立即访问系统:

👉 点击这里打开主应用

如果上方链接无法访问,请尝试:

🔧 如果端口5000无法访问:

1. 检查腾讯云安全组规则,确保端口5000已开放

2. 或使用此页面作为入口,系统功能正常

`); }); // 重定向到5000端口 app.get('/redirect', (req, res) => { res.redirect('http://43.161.248.209:5000/app/index.html'); }); app.listen(PORT, '0.0.0.0', () => { console.log(`🔄 重定向服务器运行在: http://0.0.0.0:${PORT}`); console.log(`🔗 访问: http://43.161.248.209:${PORT}`); });