Skip to content

Commit

Permalink
Feat: Cron 실행 오류 확인 메세지 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Waterticket committed Jul 15, 2023
1 parent 52a01a4 commit d694acb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tpl/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,12 @@ <h1>대시보드</h1>

<p>최근 Cron 실행 시각 : <!--@if($hotopay_config->last_cron_execution_time > 0)-->{date('Y-m-d H:i:s', $hotopay_config->last_cron_execution_time)}<!--@else-->아직 데이터가 없습니다.<!--@endif--></p>
<p>최근 Cron 성공 시각 : <!--@if($hotopay_config->last_cron_execution_success_time > 0)-->{date('Y-m-d H:i:s', $hotopay_config->last_cron_execution_success_time)}<!--@else-->아직 데이터가 없습니다.<!--@endif--></p>

<!--@if($hotopay_config->last_cron_execution_time > 0 && $hotopay_config->last_cron_execution_time + (3 * 24 * 60 * 60) < time())-->
<p style="color: red;">Cron이 3일 이상 실행되지 않았습니다. 확인해주세요.</p>
<!--@endif-->
<!--@if($hotopay_config->last_cron_execution_success_time + (3 * 24 * 60 * 60) < $hotopay_config->last_cron_execution_time)-->
<p style="color: red;">Cron에 문제가 생겼을 수 있습니다. 확인해주세요.</p>
<p style="color: red;">Cron이 3일 이상 성공하지 못했습니다. 확인해주세요.</p>
<!--@endif-->
<hr>

Expand Down

0 comments on commit d694acb

Please sign in to comment.