编辑保存婚礼请柬地址信息
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | // 编辑婚礼信息 router.post('/editInformation', async (req, res, next) => { let { names, time, seating, address, latAndLng, welcome, phoneMale, phoneFemale } = req.body; try { let message = await querySql('update informations set names=?,time=?,seating=?,address=?,latAndLng=?,welcome=?,phoneMale=?,phoneFemale=?', [names, time, seating, address, latAndLng, welcome, phoneMale, phoneFemale]); res.send({ code: message.affectedRows ? 200 : 100, msg: message.affectedRows ? '保存成功!' : '保存失败!', }) } catch (e) { console.log(e) next(e) } }) |