新增游戏刷新app_key
This commit is contained in:
parent
1b5a1dd3e9
commit
433e15ebf2
@ -75,10 +75,17 @@ router.post('/save', async (req, res, next) => {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// 生成appKey
|
// 生成appKey
|
||||||
body.app_key = md5(body.game_id + body.game_name_en + '520d8eeb8cf1d833a42c820432c020b2fd60f4b7')
|
body.app_key = md5(
|
||||||
|
body.game_id +
|
||||||
|
body.game_name_en +
|
||||||
|
'520d8eeb8cf1d833a42c820432c020b2fd60f4b7'
|
||||||
|
)
|
||||||
const newGameInfo = new GameInfo(body)
|
const newGameInfo = new GameInfo(body)
|
||||||
const result = await newGameInfo.save()
|
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({
|
res.send({
|
||||||
errcode: 0,
|
errcode: 0,
|
||||||
gameInfo: result,
|
gameInfo: result,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user