新增游戏刷新app_key
This commit is contained in:
parent
1b5a1dd3e9
commit
433e15ebf2
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user