Browse Source

add bilibili collection and up controller

feature/new_bilibili_and_instagram_sxs20191126
nicksxs 4 years ago
parent
commit
dfa1bbd792
14 changed files with 5764 additions and 4934 deletions
  1. +53
    -0
      .env.back
  2. +1
    -1
      .env.local
  3. +49
    -0
      .env15mbp.back
  4. +4
    -1
      .idea/php.xml
  5. +5166
    -4808
      _ide_helper.php
  6. +92
    -0
      app/Admin/Controllers/BilibiliCollectionsController.php
  7. +89
    -0
      app/Admin/Controllers/BilibiliUpVideosController.php
  8. +3
    -0
      app/Admin/routes.php
  9. +4
    -0
      app/BilibiliCollections.php
  10. +4
    -0
      app/BilibiliUpVideos.php
  11. +48
    -0
      app/BodyStat.php
  12. +181
    -124
      composer.lock
  13. +34
    -0
      database/migrations/2021_10_05_104821_add_path_to_bilibili_collections_table.php
  14. +36
    -0
      database/migrations/2021_10_05_104906_add_path_to_bilibili_up_videos_table.php

+ 53
- 0
.env.back View File

@ -0,0 +1,53 @@
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:BNE3RoAp39H4EB1jWx0c1xJI3arhkasdMAz52FsCc1U=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
#DB_HOST=127.0.0.1
#DB_PORT=3306
#DB_DATABASE=ins
#DB_USERNAME=root
#DB_PASSWORD=Mff@0987654321
DB_HOST=111.231.219.223
DB_PORT=3306
DB_DATABASE=ins
DB_USERNAME=ns
DB_PASSWORD=949sxs949
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
OAUTH_APP_ID=89b50ce9-fcd4-4d6b-a830-bbfe0fa5703b
OAUTH_APP_PASSWORD=gmwsDOF38_+ycvIDAH885[)
OAUTH_REDIRECT_URI=http://localhost:8000/callback
#OAUTH_SCOPES='openid profile offline_access user.read calendars.read Files.Read.All, Files.ReadWrite.All, Sites.Read.All, Sites.ReadWrite.All'
OAUTH_SCOPES='openid profile offline_access user.read calendars.read'
OAUTH_AUTHORITY=https://login.microsoftonline.com/common
OAUTH_AUTHORIZE_ENDPOINT=/oauth2/v2.0/authorize
OAUTH_TOKEN_ENDPOINT=/oauth2/v2.0/token

+ 1
- 1
.env.local View File

@ -1,6 +1,6 @@
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:Stqw+jICFFbtY3RCA3cfnv0E3oEoWZmGDgVHoUCTSNs=
APP_KEY=base64:JAnba95lV0iKVC/7lgxU7oH/utPgaOXZ4WBBYExqZd8=
APP_DEBUG=true
APP_URL=https://ins.app


+ 49
- 0
.env15mbp.back View File

@ -0,0 +1,49 @@
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:rnMm3xvsYUNAitCxs6bObdjErCT5fJ5VDFqk+uDtrNE=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=ins
DB_USERNAME=root
DB_PASSWORD=
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
OAUTH_APP_ID=89b50ce9-fcd4-4d6b-a830-bbfe0fa5703b
OAUTH_APP_PASSWORD=gmwsDOF38_+ycvIDAH885[)
OAUTH_REDIRECT_URI=http://localhost:8000/callback
#OAUTH_SCOPES='openid profile offline_access user.read calendars.read Files.Read.All, Files.ReadWrite.All, Sites.Read.All, Sites.ReadWrite.All'
OAUTH_SCOPES='openid profile offline_access user.read calendars.read'
OAUTH_AUTHORITY=https://login.microsoftonline.com/common
OAUTH_AUTHORIZE_ENDPOINT=/oauth2/v2.0/authorize
OAUTH_TOKEN_ENDPOINT=/oauth2/v2.0/token

+ 4
- 1
.idea/php.xml View File

@ -180,9 +180,12 @@
<path value="$PROJECT_DIR$/vendor/google/gax" />
<path value="$PROJECT_DIR$/vendor/doctrine/deprecations" />
<path value="$PROJECT_DIR$/vendor/paragonie/constant_time_encoding" />
<path value="$PROJECT_DIR$/vendor/albertofem/rsync-lib" />
</include_path>
</component>
<component name="PhpProjectSharedConfiguration" php_language_level="7.1" />
<component name="PhpProjectSharedConfiguration" php_language_level="8.0">
<option name="suggestChangeDefaultLanguageLevel" value="false" />
</component>
<component name="PhpUnit">
<phpunit_settings>
<PhpUnitSettings configuration_file_path="$PROJECT_DIR$/phpunit.xml" custom_loader_path="$PROJECT_DIR$/vendor/autoload.php" use_configuration_file="true" />


+ 5166
- 4808
_ide_helper.php
File diff suppressed because it is too large
View File


+ 92
- 0
app/Admin/Controllers/BilibiliCollectionsController.php View File

@ -0,0 +1,92 @@
<?php
namespace App\Admin\Controllers;
use App\BilibiliCollections;
use Encore\Admin\Controllers\AdminController;
use Encore\Admin\Form;
use Encore\Admin\Grid;
use Encore\Admin\Show;
class BilibiliCollectionsController extends AdminController
{
/**
* Title for current resource.
*
* @var string
*/
protected $title = 'BilibiliCollections';
/**
* Make a grid builder.
*
* @return Grid
*/
protected function grid()
{
$grid = new Grid(new BilibiliCollections());
$grid->column('id', __('Id'));
$grid->column('media_id', __('Media id'));
// $grid->column('videos', __('Videos'));
// $grid->column('downloaded_videos', __('Downloaded videos'));
$grid->column('title', __('Title'));
$grid->column('local_path', __('本地路径'))->editable();
$grid->column('remote_path', __('远程路径'))->editable();
$grid->column('video_id', __('Video id'));
$grid->column('is_available', __('Is available'));
$grid->column('is_downloaded', __('Is downloaded'));
$grid->column('created_at', __('Created at'));
$grid->column('updated_at', __('Updated at'));
return $grid;
}
/**
* Make a show builder.
*
* @param mixed $id
* @return Show
*/
protected function detail($id)
{
$show = new Show(BilibiliCollections::findOrFail($id));
$show->field('id', __('Id'));
$show->field('media_id', __('Media id'));
$show->field('videos', __('Videos'));
$show->field('downloaded_videos', __('Downloaded videos'));
$show->field('title', __('Title'));
$show->field('local_path', __('Local path'));
$show->field('remote_path', __('Remote path'));
$show->field('video_id', __('Video id'));
$show->field('is_available', __('Is available'));
$show->field('is_downloaded', __('Is downloaded'));
$show->field('created_at', __('Created at'));
$show->field('updated_at', __('Updated at'));
return $show;
}
/**
* Make a form builder.
*
* @return Form
*/
protected function form()
{
$form = new Form(new BilibiliCollections());
$form->number('media_id', __('Media id'));
$form->textarea('videos', __('Videos'));
$form->textarea('downloaded_videos', __('Downloaded videos'));
$form->text('title', __('Title'));
$form->text('local_path', __('Local path'));
$form->text('remote_path', __('Remote path'));
$form->number('video_id', __('Video id'));
$form->switch('is_available', __('Is available'))->default(1);
$form->switch('is_downloaded', __('Is downloaded'));
return $form;
}
}

+ 89
- 0
app/Admin/Controllers/BilibiliUpVideosController.php View File

@ -0,0 +1,89 @@
<?php
namespace App\Admin\Controllers;
use App\BilibiliUpVideos;
use Encore\Admin\Controllers\AdminController;
use Encore\Admin\Form;
use Encore\Admin\Grid;
use Encore\Admin\Show;
class BilibiliUpVideosController extends AdminController
{
/**
* Title for current resource.
*
* @var string
*/
protected $title = 'BilibiliUpVideos';
/**
* Make a grid builder.
*
* @return Grid
*/
protected function grid()
{
$grid = new Grid(new BilibiliUpVideos());
$grid->column('id', __('Id'));
$grid->column('mid', __('Mid'));
$grid->column('up_name', __('Up name'));
$grid->column('videos', __('Videos'));
$grid->column('downloaded_videos', __('Downloaded videos'));
$grid->column('local_path', __('Local path'));
$grid->column('remote_path', __('Remote path'));
$grid->column('is_available', __('Is available'));
$grid->column('is_downloaded', __('Is downloaded'));
$grid->column('created_at', __('Created at'));
$grid->column('updated_at', __('Updated at'));
return $grid;
}
/**
* Make a show builder.
*
* @param mixed $id
* @return Show
*/
protected function detail($id)
{
$show = new Show(BilibiliUpVideos::findOrFail($id));
$show->field('id', __('Id'));
$show->field('mid', __('Mid'));
$show->field('up_name', __('Up name'));
$show->field('videos', __('Videos'));
$show->field('downloaded_videos', __('Downloaded videos'));
$show->field('local_path', __('Local path'));
$show->field('remote_path', __('Remote path'));
$show->field('is_available', __('Is available'));
$show->field('is_downloaded', __('Is downloaded'));
$show->field('created_at', __('Created at'));
$show->field('updated_at', __('Updated at'));
return $show;
}
/**
* Make a form builder.
*
* @return Form
*/
protected function form()
{
$form = new Form(new BilibiliUpVideos());
$form->number('mid', __('Mid'));
$form->text('up_name', __('Up name'));
$form->textarea('videos', __('Videos'));
$form->textarea('downloaded_videos', __('Downloaded videos'));
$form->text('local_path', __('Local path'));
$form->text('remote_path', __('Remote path'));
$form->switch('is_available', __('Is available'));
$form->switch('is_downloaded', __('Is downloaded'));
return $form;
}
}

+ 3
- 0
app/Admin/routes.php View File

@ -12,5 +12,8 @@ Route::group([
$router->get('/', 'HomeController@index')->name('admin.home');
$router->resource('bilibili-videos', BilibiliVideoController::class);
$router->resource('bilibili-collections', BilibiliCollectionsController::class);
$router->resource('bilibili-up-videos', BilibiliUpVideosController::class);
});

+ 4
- 0
app/BilibiliCollections.php View File

@ -31,6 +31,10 @@ use Illuminate\Database\Eloquent\Model;
* @method static \Illuminate\Database\Eloquent\Builder|\App\BilibiliCollections whereVideos($value)
* @property string|null $downloaded_videos 已下载的视频
* @method static \Illuminate\Database\Eloquent\Builder|\App\BilibiliCollections whereDownloadedVideos($value)
* @property string $local_path 本地路径
* @property string $remote_path 远程路径
* @method static \Illuminate\Database\Eloquent\Builder|BilibiliCollections whereLocalPath($value)
* @method static \Illuminate\Database\Eloquent\Builder|BilibiliCollections whereRemotePath($value)
*/
class BilibiliCollections extends Model
{


+ 4
- 0
app/BilibiliUpVideos.php View File

@ -31,6 +31,10 @@ use Illuminate\Database\Eloquent\Model;
* @property string|null $downloaded_videos 已下载的视频 id
* @method static \Illuminate\Database\Eloquent\Builder|\App\BilibiliUpVideos whereDownloadedVideos($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\BilibiliUpVideos whereVideos($value)
* @property string $local_path 本地路径
* @property string $remote_path 远程路径
* @method static \Illuminate\Database\Eloquent\Builder|BilibiliUpVideos whereLocalPath($value)
* @method static \Illuminate\Database\Eloquent\Builder|BilibiliUpVideos whereRemotePath($value)
*/
class BilibiliUpVideos extends Model
{


+ 48
- 0
app/BodyStat.php View File

@ -5,6 +5,54 @@ namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Str;
/**
* App\BodyStat
*
* @property int $id
* @property string $weight 体重
* @property int $height 身高
* @property string $bmi bmi 指数
* @property string $fat_rate 体脂率
* @property string $body_water_rate 水分
* @property string $bone_mass 骨量
* @property string $metabolism 基础代谢
* @property string $muscle_rate 肌肉量公斤
* @property string $muscle_age 身体年龄
* @property string $protein_ratio 蛋白质百分比
* @property string $stand_body_weight 标准体重
* @property string $visceral_fat 内脏脂肪
* @property string $impedance 阻抗
* @property int $body_score 身体得分
* @property int $body_style 身体类型
* @property string $one_foot_measure_time 单脚测量
* @property string $generated_time 生成时间
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat query()
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat whereBmi($value)
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat whereBodyScore($value)
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat whereBodyStyle($value)
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat whereBodyWaterRate($value)
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat whereBoneMass($value)
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat whereFatRate($value)
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat whereGeneratedTime($value)
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat whereHeight($value)
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat whereImpedance($value)
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat whereMetabolism($value)
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat whereMuscleAge($value)
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat whereMuscleRate($value)
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat whereOneFootMeasureTime($value)
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat whereProteinRatio($value)
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat whereStandBodyWeight($value)
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat whereVisceralFat($value)
* @method static \Illuminate\Database\Eloquent\Builder|BodyStat whereWeight($value)
* @mixin \Eloquent
*/
class BodyStat extends Model
{
//


+ 181
- 124
composer.lock View File

@ -4,8 +4,66 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "661b939a3d7f6d5fbb81ab95b74125a3",
"content-hash": "c7229f1acc25872366cc3bcf890dddc8",
"packages": [
{
"name": "albertofem/rsync-lib",
"version": "1.0.0",
"source": {
"type": "git",
"url": "https://github.com/albertofem/rsync-lib.git",
"reference": "6f7e31a15d5a2fe712136c367a35d2599bb5dbe5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/albertofem/rsync-lib/zipball/6f7e31a15d5a2fe712136c367a35d2599bb5dbe5",
"reference": "6f7e31a15d5a2fe712136c367a35d2599bb5dbe5",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=5.4"
},
"require-dev": {
"phpunit/phpunit": ">=4.0,<6"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
},
"autoload": {
"psr-0": {
"AFM": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Alberto Fernandez",
"email": "albertofem@gmail.com"
}
],
"description": "A simple PHP rsync wrapper library",
"homepage": "http://albertofem.com",
"keywords": [
"rsync library"
],
"support": {
"issues": "https://github.com/albertofem/rsync-lib/issues",
"source": "https://github.com/albertofem/rsync-lib/tree/master"
},
"time": "2018-01-13T20:13:12+00:00"
},
{
"name": "alchemy/binary-driver",
"version": "v5.2.0",
@ -696,16 +754,16 @@
},
{
"name": "composer/ca-bundle",
"version": "1.2.10",
"version": "1.2.11",
"source": {
"type": "git",
"url": "https://github.com/composer/ca-bundle.git",
"reference": "9fdb22c2e97a614657716178093cd1da90a64aa8"
"reference": "0b072d51c5a9c6f3412f7ea3ab043d6603cb2582"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/9fdb22c2e97a614657716178093cd1da90a64aa8",
"reference": "9fdb22c2e97a614657716178093cd1da90a64aa8",
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/0b072d51c5a9c6f3412f7ea3ab043d6603cb2582",
"reference": "0b072d51c5a9c6f3412f7ea3ab043d6603cb2582",
"shasum": "",
"mirrors": [
{
@ -723,7 +781,7 @@
"phpstan/phpstan": "^0.12.55",
"psr/log": "^1.0",
"symfony/phpunit-bridge": "^4.2 || ^5",
"symfony/process": "^2.5 || ^3.0 || ^4.0 || ^5.0"
"symfony/process": "^2.5 || ^3.0 || ^4.0 || ^5.0 || ^6.0"
},
"type": "library",
"extra": {
@ -758,7 +816,7 @@
"support": {
"irc": "irc://irc.freenode.org/composer",
"issues": "https://github.com/composer/ca-bundle/issues",
"source": "https://github.com/composer/ca-bundle/tree/1.2.10"
"source": "https://github.com/composer/ca-bundle/tree/1.2.11"
},
"funding": [
{
@ -774,7 +832,7 @@
"type": "tidelift"
}
],
"time": "2021-06-07T13:58:28+00:00"
"time": "2021-09-25T20:32:43+00:00"
},
{
"name": "composer/composer",
@ -1399,16 +1457,16 @@
},
{
"name": "doctrine/dbal",
"version": "2.13.3",
"version": "2.13.4",
"source": {
"type": "git",
"url": "https://github.com/doctrine/dbal.git",
"reference": "0d7adf4cadfee6f70850e5b163e6cdd706417838"
"reference": "2411a55a2a628e6d8dd598388ab13474802c7b6e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/dbal/zipball/0d7adf4cadfee6f70850e5b163e6cdd706417838",
"reference": "0d7adf4cadfee6f70850e5b163e6cdd706417838",
"url": "https://api.github.com/repos/doctrine/dbal/zipball/2411a55a2a628e6d8dd598388ab13474802c7b6e",
"reference": "2411a55a2a628e6d8dd598388ab13474802c7b6e",
"shasum": "",
"mirrors": [
{
@ -1427,8 +1485,8 @@
"require-dev": {
"doctrine/coding-standard": "9.0.0",
"jetbrains/phpstorm-stubs": "2021.1",
"phpstan/phpstan": "0.12.96",
"phpunit/phpunit": "^7.5.20|^8.5|9.5.5",
"phpstan/phpstan": "0.12.99",
"phpunit/phpunit": "^7.5.20|^8.5|9.5.10",
"psalm/plugin-phpunit": "0.16.1",
"squizlabs/php_codesniffer": "3.6.0",
"symfony/cache": "^4.4",
@ -1494,7 +1552,7 @@
],
"support": {
"issues": "https://github.com/doctrine/dbal/issues",
"source": "https://github.com/doctrine/dbal/tree/2.13.3"
"source": "https://github.com/doctrine/dbal/tree/2.13.4"
},
"funding": [
{
@ -1510,7 +1568,7 @@
"type": "tidelift"
}
],
"time": "2021-09-12T19:11:48+00:00"
"time": "2021-10-02T15:59:26+00:00"
},
{
"name": "doctrine/deprecations",
@ -2388,16 +2446,16 @@
},
{
"name": "google/apiclient-services",
"version": "v0.214.0",
"version": "v0.215.0",
"source": {
"type": "git",
"url": "https://github.com/googleapis/google-api-php-client-services.git",
"reference": "f3823c7d217a0fae0da661df9f92f937bdd10a95"
"reference": "1d4d488c09a9bb5f361f8d7ddd8dbb37cb7786ac"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/f3823c7d217a0fae0da661df9f92f937bdd10a95",
"reference": "f3823c7d217a0fae0da661df9f92f937bdd10a95",
"url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/1d4d488c09a9bb5f361f8d7ddd8dbb37cb7786ac",
"reference": "1d4d488c09a9bb5f361f8d7ddd8dbb37cb7786ac",
"shasum": "",
"mirrors": [
{
@ -2432,9 +2490,9 @@
],
"support": {
"issues": "https://github.com/googleapis/google-api-php-client-services/issues",
"source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.214.0"
"source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.215.0"
},
"time": "2021-09-26T11:20:28+00:00"
"time": "2021-10-02T11:20:11+00:00"
},
{
"name": "google/auth",
@ -2549,16 +2607,16 @@
},
{
"name": "google/gax",
"version": "v1.9.0",
"version": "v1.9.1",
"source": {
"type": "git",
"url": "https://github.com/googleapis/gax-php.git",
"reference": "30ca2be6125c8936e74ad17ec2b495bb26697a59"
"reference": "1cb6414a33d7af5381bb18e47c6c9bcb8cb8d5b4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/googleapis/gax-php/zipball/30ca2be6125c8936e74ad17ec2b495bb26697a59",
"reference": "30ca2be6125c8936e74ad17ec2b495bb26697a59",
"url": "https://api.github.com/repos/googleapis/gax-php/zipball/1cb6414a33d7af5381bb18e47c6c9bcb8cb8d5b4",
"reference": "1cb6414a33d7af5381bb18e47c6c9bcb8cb8d5b4",
"shasum": "",
"mirrors": [
{
@ -2570,7 +2628,7 @@
"require": {
"google/auth": "^1.18.0",
"google/common-protos": "^1.0",
"google/grpc-gcp": "^0.1.0",
"google/grpc-gcp": "^0.2",
"google/protobuf": "^3.12.2",
"grpc/grpc": "^1.13",
"guzzlehttp/promises": "^1.3",
@ -2602,22 +2660,22 @@
],
"support": {
"issues": "https://github.com/googleapis/gax-php/issues",
"source": "https://github.com/googleapis/gax-php/tree/v1.9.0"
"source": "https://github.com/googleapis/gax-php/tree/v1.9.1"
},
"time": "2021-09-01T16:16:42+00:00"
"time": "2021-09-27T23:18:48+00:00"
},
{
"name": "google/grpc-gcp",
"version": "0.1.5",
"version": "v0.2.0",
"source": {
"type": "git",
"url": "https://github.com/GoogleCloudPlatform/grpc-gcp-php.git",
"reference": "bb9bdbf62f6ae4e73d5209d85b1d0a0b9855ff36"
"reference": "2465c2273e11ada1e95155aa1e209f3b8f03c314"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/GoogleCloudPlatform/grpc-gcp-php/zipball/bb9bdbf62f6ae4e73d5209d85b1d0a0b9855ff36",
"reference": "bb9bdbf62f6ae4e73d5209d85b1d0a0b9855ff36",
"url": "https://api.github.com/repos/GoogleCloudPlatform/grpc-gcp-php/zipball/2465c2273e11ada1e95155aa1e209f3b8f03c314",
"reference": "2465c2273e11ada1e95155aa1e209f3b8f03c314",
"shasum": "",
"mirrors": [
{
@ -2631,7 +2689,7 @@
"google/protobuf": "^v3.3.0",
"grpc/grpc": "^v1.13.0",
"php": ">=5.5.0",
"psr/cache": "^1.0.1"
"psr/cache": "^1.0.1||^2.0.0||^3.0.0"
},
"require-dev": {
"google/cloud-spanner": "^1.7",
@ -2653,22 +2711,22 @@
"description": "gRPC GCP library for channel management",
"support": {
"issues": "https://github.com/GoogleCloudPlatform/grpc-gcp-php/issues",
"source": "https://github.com/GoogleCloudPlatform/grpc-gcp-php/tree/v0.1.5"
"source": "https://github.com/GoogleCloudPlatform/grpc-gcp-php/tree/v0.2.0"
},
"time": "2020-05-26T17:21:09+00:00"
"time": "2021-09-27T22:57:18+00:00"
},
{
"name": "google/photos-library",
"version": "v1.6.3",
"version": "v1.7.0",
"source": {
"type": "git",
"url": "https://github.com/google/php-photoslibrary.git",
"reference": "44a43756785f6fe2a08caf17b11ade8803e33c1c"
"reference": "54a6ab80cf54ea2b3b6216d0b1c5750aaa473135"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/google/php-photoslibrary/zipball/44a43756785f6fe2a08caf17b11ade8803e33c1c",
"reference": "44a43756785f6fe2a08caf17b11ade8803e33c1c",
"url": "https://api.github.com/repos/google/php-photoslibrary/zipball/54a6ab80cf54ea2b3b6216d0b1c5750aaa473135",
"reference": "54a6ab80cf54ea2b3b6216d0b1c5750aaa473135",
"shasum": "",
"mirrors": [
{
@ -2681,10 +2739,11 @@
"ext-bcmath": "*",
"google/gax": "^1.0.2",
"google/protobuf": "^3.7.1",
"php": "^5.5 || ^7.0"
"php": "^7.3|^8.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8|^5.0"
"phpunit/phpunit": "^9.0",
"squizlabs/php_codesniffer": "^3.6"
},
"type": "library",
"autoload": {
@ -2707,9 +2766,9 @@
],
"support": {
"issues": "https://github.com/google/php-photoslibrary/issues",
"source": "https://github.com/google/php-photoslibrary/tree/v1.6.3"
"source": "https://github.com/google/php-photoslibrary/tree/v1.7.0"
},
"time": "2020-09-16T06:22:38+00:00"
"time": "2021-09-29T22:50:43+00:00"
},
{
"name": "google/protobuf",
@ -4083,16 +4142,16 @@
},
{
"name": "lcobucci/jwt",
"version": "3.4.5",
"version": "3.4.6",
"source": {
"type": "git",
"url": "https://github.com/lcobucci/jwt.git",
"reference": "511629a54465e89a31d3d7e4cf0935feab8b14c1"
"reference": "3ef8657a78278dfeae7707d51747251db4176240"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/lcobucci/jwt/zipball/511629a54465e89a31d3d7e4cf0935feab8b14c1",
"reference": "511629a54465e89a31d3d7e4cf0935feab8b14c1",
"url": "https://api.github.com/repos/lcobucci/jwt/zipball/3ef8657a78278dfeae7707d51747251db4176240",
"reference": "3ef8657a78278dfeae7707d51747251db4176240",
"shasum": "",
"mirrors": [
{
@ -4150,7 +4209,7 @@
],
"support": {
"issues": "https://github.com/lcobucci/jwt/issues",
"source": "https://github.com/lcobucci/jwt/tree/3.4.5"
"source": "https://github.com/lcobucci/jwt/tree/3.4.6"
},
"funding": [
{
@ -4162,7 +4221,7 @@
"type": "patreon"
}
],
"time": "2021-02-16T09:40:01+00:00"
"time": "2021-09-28T19:18:28+00:00"
},
{
"name": "league/flysystem",
@ -5768,16 +5827,16 @@
},
{
"name": "phpdocumentor/type-resolver",
"version": "1.5.0",
"version": "1.5.1",
"source": {
"type": "git",
"url": "https://github.com/phpDocumentor/TypeResolver.git",
"reference": "30f38bffc6f24293dadd1823936372dfa9e86e2f"
"reference": "a12f7e301eb7258bb68acd89d4aefa05c2906cae"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/30f38bffc6f24293dadd1823936372dfa9e86e2f",
"reference": "30f38bffc6f24293dadd1823936372dfa9e86e2f",
"url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/a12f7e301eb7258bb68acd89d4aefa05c2906cae",
"reference": "a12f7e301eb7258bb68acd89d4aefa05c2906cae",
"shasum": "",
"mirrors": [
{
@ -5818,9 +5877,9 @@
"description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
"support": {
"issues": "https://github.com/phpDocumentor/TypeResolver/issues",
"source": "https://github.com/phpDocumentor/TypeResolver/tree/1.5.0"
"source": "https://github.com/phpDocumentor/TypeResolver/tree/1.5.1"
},
"time": "2021-09-17T15:28:14+00:00"
"time": "2021-10-02T14:08:47+00:00"
},
{
"name": "phpfastcache/phpfastcache",
@ -6097,16 +6156,16 @@
},
{
"name": "predis/predis",
"version": "v1.1.7",
"version": "v1.1.8",
"source": {
"type": "git",
"url": "https://github.com/predis/predis.git",
"reference": "b240daa106d4e02f0c5b7079b41e31ddf66fddf8"
"reference": "cf5c118a077fbab8b9af1482c20952173125c041"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/predis/predis/zipball/b240daa106d4e02f0c5b7079b41e31ddf66fddf8",
"reference": "b240daa106d4e02f0c5b7079b41e31ddf66fddf8",
"url": "https://api.github.com/repos/predis/predis/zipball/cf5c118a077fbab8b9af1482c20952173125c041",
"reference": "cf5c118a077fbab8b9af1482c20952173125c041",
"shasum": "",
"mirrors": [
{
@ -6157,7 +6216,7 @@
],
"support": {
"issues": "https://github.com/predis/predis/issues",
"source": "https://github.com/predis/predis/tree/v1.1.7"
"source": "https://github.com/predis/predis/tree/v1.1.8"
},
"funding": [
{
@ -6165,20 +6224,20 @@
"type": "github"
}
],
"time": "2021-04-04T19:34:46+00:00"
"time": "2021-09-29T17:48:39+00:00"
},
{
"name": "protoqol/prequel",
"version": "v1.22.6",
"version": "v1.22.61",
"source": {
"type": "git",
"url": "https://github.com/Protoqol/Prequel.git",
"reference": "f185354590bf1c7c68e38054c77f662b23d7baf4"
"reference": "358d80ae67488b59af6495c9e9a5a53fb5dabd37"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Protoqol/Prequel/zipball/f185354590bf1c7c68e38054c77f662b23d7baf4",
"reference": "f185354590bf1c7c68e38054c77f662b23d7baf4",
"url": "https://api.github.com/repos/Protoqol/Prequel/zipball/358d80ae67488b59af6495c9e9a5a53fb5dabd37",
"reference": "358d80ae67488b59af6495c9e9a5a53fb5dabd37",
"shasum": "",
"mirrors": [
{
@ -6221,22 +6280,22 @@
"description": "Clear and concise database management.",
"support": {
"issues": "https://github.com/Protoqol/Prequel/issues",
"source": "https://github.com/Protoqol/Prequel/tree/v1.22.6"
"source": "https://github.com/Protoqol/Prequel/tree/v1.22.61"
},
"time": "2021-03-28T18:38:07+00:00"
"time": "2021-10-01T20:48:03+00:00"
},
{
"name": "ps/image-optimizer",
"version": "2.0.4",
"version": "2.0.5",
"source": {
"type": "git",
"url": "https://github.com/psliwa/image-optimizer.git",
"reference": "9f9e8ccc617d3c1b5034a659bc2c1c14a6de2647"
"reference": "591d0a147599fa9c5e39d7a9b56df0e4b033849d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/psliwa/image-optimizer/zipball/9f9e8ccc617d3c1b5034a659bc2c1c14a6de2647",
"reference": "9f9e8ccc617d3c1b5034a659bc2c1c14a6de2647",
"url": "https://api.github.com/repos/psliwa/image-optimizer/zipball/591d0a147599fa9c5e39d7a9b56df0e4b033849d",
"reference": "591d0a147599fa9c5e39d7a9b56df0e4b033849d",
"shasum": "",
"mirrors": [
{
@ -6282,7 +6341,7 @@
],
"support": {
"issues": "https://github.com/psliwa/image-optimizer/issues",
"source": "https://github.com/psliwa/image-optimizer/tree/2.0.4"
"source": "https://github.com/psliwa/image-optimizer/tree/2.0.5"
},
"funding": [
{
@ -6294,7 +6353,7 @@
"type": "github"
}
],
"time": "2021-02-23T19:34:48+00:00"
"time": "2021-09-30T20:43:05+00:00"
},
{
"name": "psr/cache",
@ -7928,16 +7987,16 @@
},
{
"name": "symfony/debug",
"version": "v4.4.27",
"version": "v4.4.31",
"source": {
"type": "git",
"url": "https://github.com/symfony/debug.git",
"reference": "2f9160e92eb64c95da7368c867b663a8e34e980c"
"reference": "43ede438d4cb52cd589ae5dc070e9323866ba8e0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/debug/zipball/2f9160e92eb64c95da7368c867b663a8e34e980c",
"reference": "2f9160e92eb64c95da7368c867b663a8e34e980c",
"url": "https://api.github.com/repos/symfony/debug/zipball/43ede438d4cb52cd589ae5dc070e9323866ba8e0",
"reference": "43ede438d4cb52cd589ae5dc070e9323866ba8e0",
"shasum": "",
"mirrors": [
{
@ -7982,7 +8041,7 @@
"description": "Provides tools to ease debugging PHP code",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/debug/tree/v4.4.27"
"source": "https://github.com/symfony/debug/tree/v4.4.31"
},
"funding": [
{
@ -7998,7 +8057,7 @@
"type": "tidelift"
}
],
"time": "2021-07-22T07:21:39+00:00"
"time": "2021-09-24T13:30:14+00:00"
},
{
"name": "symfony/deprecation-contracts",
@ -8700,16 +8759,16 @@
},
{
"name": "symfony/http-kernel",
"version": "v4.4.30",
"version": "v4.4.32",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-kernel.git",
"reference": "87f7ea4a8a7a30c967e26001de99f12943bf57ae"
"reference": "f7bda3ea8f05ae90627400e58af5179b25ce0f38"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/87f7ea4a8a7a30c967e26001de99f12943bf57ae",
"reference": "87f7ea4a8a7a30c967e26001de99f12943bf57ae",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/f7bda3ea8f05ae90627400e58af5179b25ce0f38",
"reference": "f7bda3ea8f05ae90627400e58af5179b25ce0f38",
"shasum": "",
"mirrors": [
{
@ -8790,7 +8849,7 @@
"description": "Provides a structured process for converting a Request into a Response",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/http-kernel/tree/v4.4.30"
"source": "https://github.com/symfony/http-kernel/tree/v4.4.32"
},
"funding": [
{
@ -8806,20 +8865,20 @@
"type": "tidelift"
}
],
"time": "2021-08-30T12:27:20+00:00"
"time": "2021-09-28T10:20:04+00:00"
},
{
"name": "symfony/mime",
"version": "v5.3.7",
"version": "v5.3.8",
"source": {
"type": "git",
"url": "https://github.com/symfony/mime.git",
"reference": "ae887cb3b044658676129f5e97aeb7e9eb69c2d8"
"reference": "a756033d0a7e53db389618653ae991eba5a19a11"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/mime/zipball/ae887cb3b044658676129f5e97aeb7e9eb69c2d8",
"reference": "ae887cb3b044658676129f5e97aeb7e9eb69c2d8",
"url": "https://api.github.com/repos/symfony/mime/zipball/a756033d0a7e53db389618653ae991eba5a19a11",
"reference": "a756033d0a7e53db389618653ae991eba5a19a11",
"shasum": "",
"mirrors": [
{
@ -8879,7 +8938,7 @@
"mime-type"
],
"support": {
"source": "https://github.com/symfony/mime/tree/v5.3.7"
"source": "https://github.com/symfony/mime/tree/v5.3.8"
},
"funding": [
{
@ -8895,7 +8954,7 @@
"type": "tidelift"
}
],
"time": "2021-08-20T11:40:01+00:00"
"time": "2021-09-10T12:30:38+00:00"
},
{
"name": "symfony/options-resolver",
@ -9916,7 +9975,7 @@
},
{
"name": "symfony/translation",
"version": "v4.4.30",
"version": "v4.4.32",
"source": {
"type": "git",
"url": "https://github.com/symfony/translation.git",
@ -9991,7 +10050,7 @@
"description": "Provides tools to internationalize your application",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/translation/tree/v4.4.30"
"source": "https://github.com/symfony/translation/tree/v4.4.32"
},
"funding": [
{
@ -10095,16 +10154,16 @@
},
{
"name": "symfony/var-dumper",
"version": "v4.4.30",
"version": "v4.4.31",
"source": {
"type": "git",
"url": "https://github.com/symfony/var-dumper.git",
"reference": "7f65c44c2ce80d3a0fcdb6385ee0ad535e45660c"
"reference": "1f12cc0c2e880a5f39575c19af81438464717839"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/7f65c44c2ce80d3a0fcdb6385ee0ad535e45660c",
"reference": "7f65c44c2ce80d3a0fcdb6385ee0ad535e45660c",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/1f12cc0c2e880a5f39575c19af81438464717839",
"reference": "1f12cc0c2e880a5f39575c19af81438464717839",
"shasum": "",
"mirrors": [
{
@ -10170,7 +10229,7 @@
"dump"
],
"support": {
"source": "https://github.com/symfony/var-dumper/tree/v4.4.30"
"source": "https://github.com/symfony/var-dumper/tree/v4.4.31"
},
"funding": [
{
@ -10186,7 +10245,7 @@
"type": "tidelift"
}
],
"time": "2021-08-04T20:31:23+00:00"
"time": "2021-09-24T15:30:11+00:00"
},
{
"name": "symfony/yaml",
@ -10390,16 +10449,16 @@
},
{
"name": "tinify/tinify",
"version": "1.5.2",
"version": "1.5.3",
"source": {
"type": "git",
"url": "https://github.com/tinify/tinify-php.git",
"reference": "b15d1f31d94d9b06e60251543cc918f426f0d55b"
"reference": "f971971ca4b4f0185277a81ba695640d47833852"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/tinify/tinify-php/zipball/b15d1f31d94d9b06e60251543cc918f426f0d55b",
"reference": "b15d1f31d94d9b06e60251543cc918f426f0d55b",
"url": "https://api.github.com/repos/tinify/tinify-php/zipball/f971971ca4b4f0185277a81ba695640d47833852",
"reference": "f971971ca4b4f0185277a81ba695640d47833852",
"shasum": "",
"mirrors": [
{
@ -10451,9 +10510,9 @@
"support": {
"email": "support@tinify.com",
"issues": "https://github.com/tinify/tinify-php/issues",
"source": "https://github.com/tinify/tinify-php/tree/master"
"source": "https://github.com/tinify/tinify-php/tree/1.5.3"
},
"time": "2017-07-19T12:26:04+00:00"
"time": "2021-09-29T11:48:17+00:00"
},
{
"name": "valga/fbns-react",
@ -10524,16 +10583,16 @@
},
{
"name": "vlucas/phpdotenv",
"version": "v2.6.7",
"version": "v2.6.8",
"source": {
"type": "git",
"url": "https://github.com/vlucas/phpdotenv.git",
"reference": "b786088918a884258c9e3e27405c6a4cf2ee246e"
"reference": "f1e2a35e53abe9322f0ab9ada689967e30055d40"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/b786088918a884258c9e3e27405c6a4cf2ee246e",
"reference": "b786088918a884258c9e3e27405c6a4cf2ee246e",
"url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/f1e2a35e53abe9322f0ab9ada689967e30055d40",
"reference": "f1e2a35e53abe9322f0ab9ada689967e30055d40",
"shasum": "",
"mirrors": [
{
@ -10549,7 +10608,7 @@
"require-dev": {
"ext-filter": "*",
"ext-pcre": "*",
"phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20"
"phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.21"
},
"suggest": {
"ext-filter": "Required to use the boolean validator.",
@ -10573,13 +10632,11 @@
"authors": [
{
"name": "Graham Campbell",
"email": "graham@alt-three.com",
"homepage": "https://gjcampbell.co.uk/"
"email": "hello@gjcampbell.co.uk"
},
{
"name": "Vance Lucas",
"email": "vance@vancelucas.com",
"homepage": "https://vancelucas.com/"
"email": "vance@vancelucas.com"
}
],
"description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.",
@ -10590,7 +10647,7 @@
],
"support": {
"issues": "https://github.com/vlucas/phpdotenv/issues",
"source": "https://github.com/vlucas/phpdotenv/tree/v2.6.7"
"source": "https://github.com/vlucas/phpdotenv/tree/v2.6.8"
},
"funding": [
{
@ -10602,7 +10659,7 @@
"type": "tidelift"
}
],
"time": "2021-01-20T14:39:13+00:00"
"time": "2021-10-02T19:02:17+00:00"
},
{
"name": "winbox/args",
@ -10888,16 +10945,16 @@
},
{
"name": "filp/whoops",
"version": "2.14.3",
"version": "2.14.4",
"source": {
"type": "git",
"url": "https://github.com/filp/whoops.git",
"reference": "89584ce67dd32307f1063cc43846674f4679feda"
"reference": "f056f1fe935d9ed86e698905a957334029899895"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/filp/whoops/zipball/89584ce67dd32307f1063cc43846674f4679feda",
"reference": "89584ce67dd32307f1063cc43846674f4679feda",
"url": "https://api.github.com/repos/filp/whoops/zipball/f056f1fe935d9ed86e698905a957334029899895",
"reference": "f056f1fe935d9ed86e698905a957334029899895",
"shasum": "",
"mirrors": [
{
@ -10908,7 +10965,7 @@
},
"require": {
"php": "^5.5.9 || ^7.0 || ^8.0",
"psr/log": "^1.0.1"
"psr/log": "^1.0.1 || ^2.0 || ^3.0"
},
"require-dev": {
"mockery/mockery": "^0.9 || ^1.0",
@ -10953,7 +11010,7 @@
],
"support": {
"issues": "https://github.com/filp/whoops/issues",
"source": "https://github.com/filp/whoops/tree/2.14.3"
"source": "https://github.com/filp/whoops/tree/2.14.4"
},
"funding": [
{
@ -10961,7 +11018,7 @@
"type": "github"
}
],
"time": "2021-09-19T12:00:00+00:00"
"time": "2021-10-03T12:00:00+00:00"
},
{
"name": "fzaninotto/faker",


+ 34
- 0
database/migrations/2021_10_05_104821_add_path_to_bilibili_collections_table.php View File

@ -0,0 +1,34 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddPathToBilibiliCollectionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('bilibili_collections', function (Blueprint $table) {
//
$table->string("local_path")->after("title")->comment("本地路径");
$table->string("remote_path")->after("local_path")->comment("远程路径");
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('bilibili_collections', function (Blueprint $table) {
//
});
}
}

+ 36
- 0
database/migrations/2021_10_05_104906_add_path_to_bilibili_up_videos_table.php View File

@ -0,0 +1,36 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddPathToBilibiliUpVideosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('bilibili_up_videos', function (Blueprint $table) {
//
// $table->string("videos")->after("up_name")->comment("up名");
// $table->string("downloaded_videos")->after("videos")->comment("已下载的视频");
$table->string("local_path")->after("downloaded_videos")->comment("本地路径");
$table->string("remote_path")->after("local_path")->comment("远程路径");
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('bilibili_up_videos', function (Blueprint $table) {
//
});
}
}

Loading…
Cancel
Save