mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
log promotion for filter
This commit is contained in:
@@ -679,9 +679,10 @@ class TrackerRepository extends BaseRepository
|
||||
$spStateReal = $torrent->spStateReal;
|
||||
$log .= "[SP_STATE_REAL]: $spStateReal";
|
||||
$promotionInfo = apply_filter('torrent_promotion', $torrent->toArray());
|
||||
if ($promotionInfo) {
|
||||
do_log("promotionInfo from filter torrent_promotion by torrent: " . $torrent->toArray() . ", get : " . json_encode($promotionInfo));
|
||||
if ($promotionInfo['sp_state'] != $spStateReal) {
|
||||
$spStateReal = $promotionInfo['sp_state'];
|
||||
$log .= "[CHANGE_SP_STATE_BY_FILTER_TORRENT_PROMOTION]: $spStateReal";
|
||||
$log .= "[CHANGE_SP_STATE_REAL_BY_FILTER_TORRENT_PROMOTION]: $spStateReal";
|
||||
}
|
||||
$uploaderRatio = Setting::get('torrent.uploaderdouble');
|
||||
$log .= ", spStateReal: $spStateReal, uploaderRatio: $uploaderRatio";
|
||||
|
||||
Reference in New Issue
Block a user