diff --git a/hwe/index.php b/hwe/index.php index a7512320..f0fde62a 100644 --- a/hwe/index.php +++ b/hwe/index.php @@ -2,6 +2,8 @@ namespace sammo; +use sammo\DTO\VoteInfo; + include "lib.php"; include "func.php"; @@ -109,6 +111,16 @@ if (!$otherTextInfo) { } else { $otherTextInfo = join(', ', $otherTextInfo); } + +$lastVoteID = $gameStor->lastVote; +$lastVote = null; +if($lastVoteID){ + $voteStor = KVStorage::getStorage($db, 'vote'); + $lastVote = new VoteInfo($voteStor->getValue("vote_{$voteID}")); + if($lastVote->endDate && $lastVote->endDate < TimeUtil::now()){ + $lastVote = null; + } +} ?> @@ -207,13 +219,11 @@ if (!$otherTextInfo) {
vote ?: ['']; - $vote_title = Tag2Code($gameStor->vote_title ?? '-'); ?> - + 진행중 설문 없음 - 설문 진행중 : + 설문 진행중 : title ?>
diff --git a/hwe/ts/PageVote.vue b/hwe/ts/PageVote.vue index ded54a60..26ca61a3 100644 --- a/hwe/ts/PageVote.vue +++ b/hwe/ts/PageVote.vue @@ -1,7 +1,7 @@