Update (test routes)

This commit is contained in:
2023-09-25 09:59:27 +08:00
parent 4713df71c0
commit 70e4cfe20a

View File

@@ -23,19 +23,19 @@
*/
Route::get('/news_serp', function () {
$category = Category::find(1);
$category = Category::find(2);
$news_serp_result = GetNewsSerpTask::handle($category, 'US');
dd($news_serp_result);
});
Route::get('/news_serp_parse', function () {
$news_serp_result = NewsSerpResult::find(1);
$news_serp_result = NewsSerpResult::find(2);
$serp_urls = ParseNewsSerpDomainsTask::handle($news_serp_result);
dd($serp_urls);
});
Route::get('/write_article', function () {
$serp_url = SerpUrl::find(1);
$serp_url = SerpUrl::find(2);
$task = GenerateArticleJob::dispatch($serp_url)->onQueue('default')->onConnection('default');
dd($task);