Debug (serp parser)

This commit is contained in:
2023-09-25 10:06:24 +08:00
parent d4a4d3c000
commit b2de1361aa

View File

@@ -19,16 +19,16 @@ public static function handle(NewsSerpResult $news_serp_result, $serp_counts = 1
$success = false; $success = false;
try { // try {
$serp_results = OSSUploader::readJson( $serp_results = OSSUploader::readJson(
config('platform.dataset.news.news_serp.driver'), config('platform.dataset.news.news_serp.driver'),
config('platform.dataset.news.news_serp.path'), config('platform.dataset.news.news_serp.path'),
$news_serp_result->filename)?->tasks[0]?->result[0]?->items; $news_serp_result->filename)?->tasks[0]?->result[0]?->items;
} catch (Exception $e) { // } catch (Exception $e) {
$serp_results = null; // $serp_results = null;
} // }
if (! is_null($serp_results)) { if (! is_null($serp_results)) {