feat: 白龙马数字意识框架 v2.2.0 - 3D意识空间、多技能协同、自我进化系统
This commit is contained in:
18
route-code.js
Normal file
18
route-code.js
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
// GET /consciousness-3d - 3D意识空间可视化
|
||||
if (req.method === 'GET' && (url.pathname === '/consciousness-3d' || url.pathname === '/consciousness-3d.html')) {
|
||||
if (config.needsActivation) {
|
||||
res.writeHead(302, { Location: '/activation' })
|
||||
res.end()
|
||||
return
|
||||
}
|
||||
try {
|
||||
const html = fs.readFileSync(CONSCIOUSNESS_3D_PATH, 'utf-8')
|
||||
res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' })
|
||||
res.end(html)
|
||||
} catch {
|
||||
res.writeHead(404)
|
||||
res.end('consciousness-3d.html not found')
|
||||
}
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user