Update (fix)
This commit is contained in:
@@ -42,11 +42,10 @@ public static function handle(int $rss_post_id)
|
||||
$service_cost_usage->name = 'smartproxy-CrawlRssPostTask';
|
||||
$service_cost_usage->reference_1 = 'rss_post';
|
||||
$service_cost_usage->reference_2 = strval($rss_post_id);
|
||||
$service_cost_usage->output = null;
|
||||
$service_cost_usage->output = self::getMarkdownFromHtml($raw_html);
|
||||
$service_cost_usage->save();
|
||||
|
||||
} else {
|
||||
$raw_html = null;
|
||||
$response->throw();
|
||||
}
|
||||
|
||||
@@ -54,6 +53,8 @@ public static function handle(int $rss_post_id)
|
||||
$raw_html = null;
|
||||
}
|
||||
|
||||
//dd($raw_html);
|
||||
|
||||
if (! is_empty($raw_html)) {
|
||||
$rss_post->body = self::getMarkdownFromHtml($raw_html);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user