From c25247367ab08db25d5c34e58b14ea0f674451f0 Mon Sep 17 00:00:00 2001 From: yulixing Date: Wed, 31 Jul 2019 15:50:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=BB=A46000=E5=B9=B3=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/games/games.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/games/games.js b/src/controllers/games/games.js index 4130ef2..119defd 100644 --- a/src/controllers/games/games.js +++ b/src/controllers/games/games.js @@ -161,7 +161,9 @@ router.post('/update', async (req, res, next) => { const curPlatform = body.platform const prePlatform = platforms[platformIndex] || {} - if (curPlatform.status !== prePlatform.status) { + delete curPlatform.newPlatform + + if (curPlatform.platform.platform_id !== "6000" && (curPlatform.status !== prePlatform.status)) { const token = await getOpsToken() const statusRes = await axios({