finish plugin: sticky promotion

This commit is contained in:
xiaomlove
2022-06-08 14:15:59 +08:00
parent 44c750234a
commit 09f6e5b274
62 changed files with 954 additions and 178 deletions
+5 -3
View File
@@ -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());
}