feat: 시나리오 생성 시 에러가 발생하면 메시지를 띄움
This commit is contained in:
+22
-14
@@ -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()
|
||||||
|
]);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user