diff --git a/src/controllers/games/games.js b/src/controllers/games/games.js index c47a38c..15a479e 100644 --- a/src/controllers/games/games.js +++ b/src/controllers/games/games.js @@ -74,11 +74,18 @@ router.post('/save', async (req, res, next) => { errmsg: '游戏已存在!', }) } else { - // 生成appKey - body.app_key = md5(body.game_id + body.game_name_en + '520d8eeb8cf1d833a42c820432c020b2fd60f4b7') + // 生成appKey + body.app_key = md5( + body.game_id + + body.game_name_en + + '520d8eeb8cf1d833a42c820432c020b2fd60f4b7' + ) const newGameInfo = new GameInfo(body) const result = await newGameInfo.save() + // 调用接口更新 appkey 列表 + axios.get('http://10.10.3.16:6500/webapp/index.php?c=Ops&a=sync_log_conf') + res.send({ errcode: 0, gameInfo: result,