기타 설정 추가
This commit is contained in:
@@ -32,6 +32,20 @@ if(file_exists(__dir__.'/.htaccess')){
|
|||||||
|
|
||||||
$options = Json::decode($reserved['options']);
|
$options = Json::decode($reserved['options']);
|
||||||
|
|
||||||
|
$otherTextInfo = [];
|
||||||
|
|
||||||
|
if($options['join_mode'] == 'onlyRandom'){
|
||||||
|
$otherTextInfo[] = '랜덤 임관 전용';
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!$otherTextInfo){
|
||||||
|
$otherTextInfo = '표준';
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$otherTextInfo = join(', ', $otherTextInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Json::die([
|
Json::die([
|
||||||
'reserved'=>[
|
'reserved'=>[
|
||||||
'scenarioName'=>$options['scenarioName'],
|
'scenarioName'=>$options['scenarioName'],
|
||||||
@@ -39,7 +53,8 @@ if(file_exists(__dir__.'/.htaccess')){
|
|||||||
'fictionMode'=>($options['fiction']?'가상':'사실'),
|
'fictionMode'=>($options['fiction']?'가상':'사실'),
|
||||||
'npcMode'=>($options['npcmode']?'가능':'불가'),
|
'npcMode'=>($options['npcmode']?'가능':'불가'),
|
||||||
'openDatetime'=>$reserved['date'],
|
'openDatetime'=>$reserved['date'],
|
||||||
'gameConf'=>$options['gameConf']
|
'gameConf'=>$options['gameConf'],
|
||||||
|
'otherTextInfo'=>$otherTextInfo
|
||||||
],
|
],
|
||||||
'game'=>null,
|
'game'=>null,
|
||||||
'me'=>null
|
'me'=>null
|
||||||
|
|||||||
+1
-1
@@ -47,7 +47,7 @@ var serverReservedTemplate = "\
|
|||||||
<td colspan='4' class='server_reserved'>\
|
<td colspan='4' class='server_reserved'>\
|
||||||
- 오픈 일시 : <%openDatetime%> - <br>\
|
- 오픈 일시 : <%openDatetime%> - <br>\
|
||||||
<span style='color:orange;'><%scenarioName%></span> <span style='color:limegreen;'><%turnterm%>분 턴 서버</span><br>\
|
<span style='color:orange;'><%scenarioName%></span> <span style='color:limegreen;'><%turnterm%>분 턴 서버</span><br>\
|
||||||
(상성 설정:<%fictionMode%>), (빙의 여부:<%npcMode%>), (최대 스탯:<%gameConf.defaultStatTotal%>)</td>\
|
(상성 설정:<%fictionMode%>), (빙의 여부:<%npcMode%>), (최대 스탯:<%gameConf.defaultStatTotal%>), (기타 설정:<%otherTextInfo%>)</td>\
|
||||||
";
|
";
|
||||||
|
|
||||||
$(function(){
|
$(function(){
|
||||||
|
|||||||
Reference in New Issue
Block a user