From e54a0a66684bbf3a73834261a050bc1c621791e0 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sat, 5 Aug 2023 06:52:50 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=8B=9C=EB=82=98=EB=A6=AC=EC=98=A4=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1=20=EC=8B=9C=20=EC=97=90=EB=9F=AC=EA=B0=80=20?= =?UTF-8?q?=EB=B0=9C=EC=83=9D=ED=95=98=EB=A9=B4=20=EB=A9=94=EC=8B=9C?= =?UTF-8?q?=EC=A7=80=EB=A5=BC=20=EB=9D=84=EC=9B=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/j_install.php | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/hwe/j_install.php b/hwe/j_install.php index 3e9ae397..6aa8f724 100644 --- a/hwe/j_install.php +++ b/hwe/j_install.php @@ -199,17 +199,25 @@ if($reserve_open){ ]); } -Json::die(ResetHelper::buildScenario( - $turnterm, - $sync, - $scenario, - $fiction, - $extend, - $block_general_create, - $npcmode, - $show_img_level, - !!$tournament_trig, - $join_mode, - TimeUtil::now(), - $autorun_user -)); \ No newline at end of file +try{ + Json::die(ResetHelper::buildScenario( + $turnterm, + $sync, + $scenario, + $fiction, + $extend, + $block_general_create, + $npcmode, + $show_img_level, + !!$tournament_trig, + $join_mode, + TimeUtil::now(), + $autorun_user + )); +} +catch(\Exception $e){ + Json::die([ + 'result'=>false, + 'reason'=>$e->getMessage() + ]); +} \ No newline at end of file