app.js
@@ -46,16 +46,9 @@ config.endpoint = `facebody.cn-shanghai.aliyuncs.com`; return new facebody20191230.default(config); } app.get('/',async(req,res)=>{ const filePath = path.join(__dirname, 'public', 'index.html'); fs2.readFile(filePath, 'utf8', (err, data) => { if (err) { res.status(500).send('Error reading file'); return; } res.send(data); app.get('/', (req, res) => { res.send('<h1>Hello World!</h1>'); }); }) // 定义 /webuser 路由处理器 用患者code 换信息 app.post('/webuser', async (req, res) => { const mode=req.body