fix new torrent email notification

This commit is contained in:
xiaomlove
2024-12-23 23:52:30 +08:00
parent edadbf0048
commit 2ca703c8df
4 changed files with 19 additions and 10 deletions

View File

@@ -101,12 +101,9 @@ class Test extends Command
*/
public function handle()
{
$file = resource_path("geoip/GeoLite2-ASN.mmdb");
$file = resource_path("geoip/GeoLite2-City.mmdb");
$reader = new Reader($file);
$asn = $reader->asn("94.16.120.0");
// $result = \Nexus\Plugin\Plugin::listEnabled();
dd($asn);
$torrent = Torrent::query()->find(12, ['info_hash']);
$infoHash = $torrent->info_hash;
dd($infoHash === rawurldecode("%15%24%f3%e6%91e%f6%fbT%be%3f%b8%f3%f7_%f5%f6%aa%3fv"));
}
}