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