|
@@ -92,7 +92,7 @@ class BookUpdateOne extends Command
|
|
->first();
|
|
->first();
|
|
$max_sequence_chapter_id = isset($last_chapter->id)?$last_chapter->id:0;
|
|
$max_sequence_chapter_id = isset($last_chapter->id)?$last_chapter->id:0;
|
|
$max_sequence = isset($last_chapter->sequence)?$last_chapter->sequence:0;
|
|
$max_sequence = isset($last_chapter->sequence)?$last_chapter->sequence:0;
|
|
-
|
|
|
|
|
|
+ $from_sequence = $max_sequence;
|
|
$chapter_list_fromat = "http://www.leyuee.com/services/zwfx.aspx?method=chapterlist&bid=%s&token=sefaf23h7face";
|
|
$chapter_list_fromat = "http://www.leyuee.com/services/zwfx.aspx?method=chapterlist&bid=%s&token=sefaf23h7face";
|
|
$res = $this->client->get(sprintf($chapter_list_fromat,$book_info->ly_bid));
|
|
$res = $this->client->get(sprintf($chapter_list_fromat,$book_info->ly_bid));
|
|
$res = $res->getBody()->getContents();
|
|
$res = $res->getBody()->getContents();
|
|
@@ -174,6 +174,7 @@ class BookUpdateOne extends Command
|
|
'update_type'=>'add_chapter',
|
|
'update_type'=>'add_chapter',
|
|
'channel_name'=>$book_info->category_id >=13 ? '女频':'男频'
|
|
'channel_name'=>$book_info->category_id >=13 ? '女频':'男频'
|
|
]);
|
|
]);
|
|
|
|
+ ChapterService::splitContentAll($bid,$from_sequence);
|
|
}
|
|
}
|
|
return $j;
|
|
return $j;
|
|
}
|
|
}
|