mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
finish plugin: sticky promotion
This commit is contained in:
@@ -40,6 +40,7 @@ use League\Flysystem\StorageAttributes;
|
||||
use Nexus\Database\NexusDB;
|
||||
use Nexus\Imdb\Imdb;
|
||||
use NexusPlugin\PostLike\PostLike;
|
||||
use NexusPlugin\StickyPromotion\Models\StickyPromotion;
|
||||
use Rhilip\Bencode\Bencode;
|
||||
|
||||
class Test extends Command
|
||||
@@ -75,9 +76,10 @@ class Test extends Command
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$postLike = new PostLike();
|
||||
$postLike->install();
|
||||
// $postLike->uninstall();
|
||||
$torrent = Torrent::query()->find(2);
|
||||
$torrent = apply_filter('torrent_detail', $torrent);
|
||||
$user = \App\Models\User::query()->find(10001);
|
||||
do_action('announced', $torrent->toArray(), $user->toArray());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user