Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lxbccc committed May 11, 2019
1 parent ffde9f3 commit 00f1aa7
Show file tree
Hide file tree
Showing 18 changed files with 38 additions and 147 deletions.
2 changes: 1 addition & 1 deletion app/Console/Commands/JavbusCrawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public function prepare_movie_rquests($requrl,$remove404=0){
[get res:3]<insert> [3 suc:NKD-003= =avbook_javbus_movie= movie] </insert>*/

if($remove404==1){
$sql = "select code_36 from avbook_crawler_404 where intable_name = '{$this->in_table_name}' ";
$sql = "select code_36 from avbook_crawler_404 where intable_name = '{$this->in_table_name}' and checkdata = 1";
$this->info($sql);
$table_code_36_404 = $this->database->query($sql)->fetchAll(\PDO::FETCH_COLUMN, 0);
$result_dif =array_diff($result_dif,$table_code_36_404);
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/AvbookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function movie(Request $request)

$movie_info['Genre'] = str_replace($find, '',str_replace('][', ',', $movie_info['Genre']));
$arr_genre_code =explode(',', $movie_info['Genre']) ;
$genre_info = DB::table('jav_avmoo_genre_name')
$genre_info = DB::table('avbook_avmoo_genre')
->whereIn('genre_code', $arr_genre_code)->get();

$avbus = Javbus::where('avmoo_code_36',$movie_info['code_36'])->orWhere('censored_id',$movie_info['censored_id'])->first();
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateAvbookAvmooGenreTable extends Migration {

/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('avbook_avmoo_genre', function(Blueprint $table)
{
$table->string('genre_code', 11)->default('')->primary();
$table->string('genre_dsce', 64)->nullable();
});
}


/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('avbook_avmoo_genre');
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function up()
{
$table->string('code_36', 12)->default('')->index('code_36');
$table->string('intable_name', 128);
$table->tinyinteger('checkdata')->nullable()->default(0);
$table->tinyinteger('checkdata')->nullable();
$table->primary(['intable_name','code_36']);
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function up()
$table->string('censored_id', 64)->default('')->index('censored_id');
$table->string('magnet_name', 1024)->nullable();
$table->string('magnet_type', 32)->nullable();
$table->date('magnet_date')->nullable();
$table->string('magnet_date', 32)->nullable();
$table->integer('have_hd')->nullable();
$table->integer('have_sub')->nullable()->comment('1');
$table->integer('have_down')->nullable()->index('have_down');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function up()
{
Schema::create('avbook_javbus_movie', function(Blueprint $table)
{
$table->string('censored_id', 64)->default('')->unique('censored_id')->comment('識別碼');
$table->string('censored_id', 64)->default('')->primary()->comment('識別碼');
$table->string('avmoo_code_36', 6)->nullable()->default('')->index('avmoo_code_36');
$table->string('movie_pic_cover', 128)->nullable()->comment('https://pics.javbus.info/cover/5trd_b.jpg');
$table->string('movie_title', 512)->nullable();
Expand Down

0 comments on commit 00f1aa7

Please sign in to comment.