외교 서신, 등용장 수락시 올바르지 않을 경우 alert
건국 시 장수 이름과 같아도 건국 가능하도록 변경
This commit is contained in:
@@ -44,16 +44,16 @@ if($msg === null){
|
||||
'reason'=>'올바르지 않은 메시지'
|
||||
]);
|
||||
}
|
||||
|
||||
$reason = 'success';
|
||||
if($msgResponse){
|
||||
$result = $msg->agreeMessage($general['no']);
|
||||
$result = $msg->agreeMessage($general['no'], $reason);
|
||||
}
|
||||
else{
|
||||
$result = $msg->declineMessage($general['no']);
|
||||
$result = $msg->declineMessage($general['no'], $reason);
|
||||
}
|
||||
|
||||
|
||||
Json::die([
|
||||
'result' => $result===DiplomaticMessage::ACCEPTED,
|
||||
'reason' => 'result'
|
||||
'reason' => $reason
|
||||
]);
|
||||
Reference in New Issue
Block a user