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;
try {
// try {
$serp_results = OSSUploader::readJson(
config('platform.dataset.news.news_serp.driver'),
config('platform.dataset.news.news_serp.path'),
$news_serp_result->filename)?->tasks[0]?->result[0]?->items;
} catch (Exception $e) {
$serp_results = null;
}
// } catch (Exception $e) {
// $serp_results = null;
// }
if (! is_null($serp_results)) {