Browse Source

add some code

feature/new_bilibili_and_instagram_sxs20191126
shixuesen 4 years ago
parent
commit
1ec1ca45cc
4 changed files with 6 additions and 3 deletions
  1. +2
    -1
      app/Console/Commands/BiliVideoCode.php
  2. +1
    -0
      app/Providers/AppServiceProvider.php
  3. +2
    -1
      app/Repositories/BilibiliVideoRepository.php
  4. +1
    -1
      app/Services/BilibiliServiceV2.php

+ 2
- 1
app/Console/Commands/BiliVideoCode.php View File

@ -2,6 +2,7 @@
namespace App\Console\Commands; namespace App\Console\Commands;
use App\Repositories\BilibiliVideoRepository;
use App\Services\BilibiliService; use App\Services\BilibiliService;
use App\Services\BilibiliServiceV2; use App\Services\BilibiliServiceV2;
use App\Services\FfmpegService; use App\Services\FfmpegService;
@ -44,7 +45,7 @@ class BiliVideoCode extends Command
{ {
// dump($this->arguments());exit; // dump($this->arguments());exit;
// //
$bilibili = new BilibiliServiceV2();
$bilibili = new BilibiliServiceV2(new BilibiliVideoRepository(App::getFacadeApplication()));
// $bilibili->checkVideoHasDownload(); // $bilibili->checkVideoHasDownload();
// $bilibili->queryLocalUpVideoList();exit; // $bilibili->queryLocalUpVideoList();exit;


+ 1
- 0
app/Providers/AppServiceProvider.php View File

@ -3,6 +3,7 @@
namespace App\Providers; namespace App\Providers;
use Illuminate\Support\ServiceProvider; use Illuminate\Support\ServiceProvider;
use Prettus\Repository\Providers\RepositoryServiceProvider;
class AppServiceProvider extends ServiceProvider class AppServiceProvider extends ServiceProvider
{ {


+ 2
- 1
app/Repositories/BilibiliVideoRepository.php View File

@ -1,6 +1,7 @@
<?php <?php
namespace App;
namespace App\Repositories;;
use App\BilibiliVideos;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
use Prettus\Repository\Eloquent\BaseRepository; use Prettus\Repository\Eloquent\BaseRepository;


+ 1
- 1
app/Services/BilibiliServiceV2.php View File

@ -6,8 +6,8 @@ namespace App\Services;
use App\BilibiliCollections; use App\BilibiliCollections;
use App\BilibiliUpVideos; use App\BilibiliUpVideos;
use App\BilibiliVideoParts; use App\BilibiliVideoParts;
use App\BilibiliVideoRepository;
use App\BilibiliVideos; use App\BilibiliVideos;
use App\Repositories\BilibiliVideoRepository;
use Exception; use Exception;
use GuzzleHttp\Client; use GuzzleHttp\Client;
use Illuminate\Support\Arr; use Illuminate\Support\Arr;


Loading…
Cancel
Save