This commit is contained in:
make
2025-03-31 19:43:34 +08:00
10 changed files with 293 additions and 45 deletions

View File

@@ -40,18 +40,18 @@ Route::get('/pc/nvsheng-xiaoshuo', [Novel::class, 'getNovelChannel'])->append([
*/
Route::get('/shuku/all', [Novel::class,'getLibrary'])->append(['boolIsMobile' => true]);
Route::get('/pc/shuku/all', [Novel::class,'getLibrary'])->append(['boolIsMobile' => false]);
Route::get('/shuku/:strNovelChannel-:strCategory-:strStatus-:intPage', [Novel::class,'getLibrary'])
Route::get('/shuku/:intGender-:strCategory-:strStatus-:intPage', [Novel::class,'getLibrary'])
->pattern([
'strNovelChannel' => '[\w]*',
'intGender' => '\d{1}',
'strCategory' => '[\w]*',
'strStatus' => '[\w]*',
'intPage' => '\d+'
])
->append(['boolIsMobile' => true]);
Route::get('/pc/shuku/:strNovelChannel-:strCategory-:strStatus-:intPage', [Novel::class,'getLibrary'])
Route::get('/pc/shuku/:intGender-:strCategory-:strStatus-:intPage', [Novel::class,'getLibrary'])
->pattern([
'strNovelChannel' => '[\w]*',
'intGender' => '\d{1}',
'strCategory' => '[\w]*',
'strStatus' => '[\w]*',
'intPage' => '\d+'