feat: 시나리오 생성 시 에러가 발생하면 메시지를 띄움

This commit is contained in:
2023-08-05 06:52:50 +00:00
parent eb545724ea
commit e54a0a6668
+22 -14
View File
@@ -199,17 +199,25 @@ if($reserve_open){
]); ]);
} }
Json::die(ResetHelper::buildScenario( try{
$turnterm, Json::die(ResetHelper::buildScenario(
$sync, $turnterm,
$scenario, $sync,
$fiction, $scenario,
$extend, $fiction,
$block_general_create, $extend,
$npcmode, $block_general_create,
$show_img_level, $npcmode,
!!$tournament_trig, $show_img_level,
$join_mode, !!$tournament_trig,
TimeUtil::now(), $join_mode,
$autorun_user TimeUtil::now(),
)); $autorun_user
));
}
catch(\Exception $e){
Json::die([
'result'=>false,
'reason'=>$e->getMessage()
]);
}