기존 방식 롤백한뒤 에러 코드를 이용하여 찾지 못하는 경우 -2 에러코드를 리턴 시킴

This commit is contained in:
Johnny 2022-03-24 23:07:06 +09:00
parent b4b1188081
commit 2788392060
2 changed files with 7 additions and 15 deletions

View file

@ -223,12 +223,14 @@ class commentAdminController extends comment
}
$output = $oCommentController->deleteComment($comment_srl, TRUE, toBool($isTrash));
if(!$output->toBool())
if($output->error !== -2)
{
$oDB->rollback();
return $output;
if(!$output->toBool())
{
$oDB->rollback();
return $output;
}
}
$deleted_count++;
}