From b166f2a469403ba52d7560c7f8d41da7d79fd48c Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 26 Aug 2018 22:32:37 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8B=9C=EB=AE=AC=EB=A0=88=EC=9D=B4=ED=84=B0?= =?UTF-8?q?=20=EC=A0=84=ED=88=AC=20=EC=A4=80=EB=B9=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/j_simulate_battle.php | 8 ++++++++ hwe/js/battle_simulator.js | 1 + 2 files changed, 9 insertions(+) diff --git a/hwe/j_simulate_battle.php b/hwe/j_simulate_battle.php index c48ee59b..6d2a8109 100644 --- a/hwe/j_simulate_battle.php +++ b/hwe/j_simulate_battle.php @@ -15,6 +15,14 @@ if($query === null){ ]); } +$action = Util::getReq('action'); +if($action === null || in_array($action, ['reorder', 'battle'])){ + Json::die([ + 'result'=>false, + 'reason'=>'원하는 동작이 지정되지 않았습니다.' + ]); +} + $query = Json::decode($query); if($query === null){ Json::die([ diff --git a/hwe/js/battle_simulator.js b/hwe/js/battle_simulator.js index 3a4d988d..c1a304c4 100644 --- a/hwe/js/battle_simulator.js +++ b/hwe/js/battle_simulator.js @@ -527,6 +527,7 @@ jQuery(function($){ url:'j_simulate_battle.php', dataType:'json', data:{ + action:'battle', query:JSON.stringify(data), } }).then(function(result){