plugin management + user tables and torrents table text column migrate

This commit is contained in:
xiaomlove
2025-01-19 14:37:00 +08:00
parent 0f88ab8d82
commit 403a9447a9
66 changed files with 1432 additions and 786 deletions

View File

@@ -381,6 +381,14 @@ class TorrentRepository extends BaseRepository
return md5($passkey . date('Ymd') . $user['id']);
}
/**
* @deprecated
* @param $id
* @param $uid
* @param $initializeIfNotExists
* @return string
* @throws NexusException
*/
public function getTrackerReportAuthKey($id, $uid, $initializeIfNotExists = false): string
{
$key = $this->getTrackerReportAuthKeySecret($id, $uid, $initializeIfNotExists);
@@ -389,6 +397,8 @@ class TorrentRepository extends BaseRepository
}
/**
* @deprecated
*
* check tracker report authkey
* if valid, the result will be the date the key generate, else if will be empty string
*

View File

@@ -227,6 +227,13 @@ class TrackerRepository extends BaseRepository
}
/**
* @deprecated
*
* @param $authkey
* @return array
* @throws TrackerException
*/
protected function checkAuthkey($authkey)
{
$arr = explode('|', $authkey);