Skip to content

Commit

Permalink
Update Plugin.php
Browse files Browse the repository at this point in the history
  • Loading branch information
moxiaowk authored Aug 7, 2023
1 parent a737d6d commit 921ee2c
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions Plugin.php
Original file line number Diff line number Diff line change
@@ -84,10 +84,6 @@ public static function addCountdownToContent($content, $widget, $lastResult)
}






private static function readWinnerFromLog($slug)
{
$file = __DIR__ . '/ADrawLottery_log.txt';
@@ -186,9 +182,6 @@ private static function outputWinner($winner)
}





private static function doADrawLottery()
{

@@ -209,7 +202,7 @@ private static function doADrawLottery()
->where('table.comments.status = ?', 'approved')
->where('table.comments.created < ?', self::getBeijingTime())
->where('table.comments.type = ?', 'comment')
->where('table.comments.cid = ?', $cid) // 修改这一行
->where('table.comments.cid = ?', $cid)
->order('table.comments.created', Typecho_Db::SORT_ASC));


@@ -243,12 +236,6 @@ private static function doADrawLottery()
$file = __DIR__ . '/ADrawLottery_log.txt';
file_put_contents($file, $data, FILE_APPEND | LOCK_EX);


}





}
}

0 comments on commit 921ee2c

Please sign in to comment.