From 433e15ebf2366fc2946a96c04301b1ea43531eae Mon Sep 17 00:00:00 2001 From: yulixing Date: Mon, 14 Oct 2019 13:55:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B8=B8=E6=88=8F=E5=88=B7?= =?UTF-8?q?=E6=96=B0app=5Fkey?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/games/games.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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,