Add (ai gen): auto-select categories

This commit is contained in:
2023-10-02 21:33:44 +08:00
parent b2751e5133
commit 9b7c98e141

View File

@@ -86,7 +86,7 @@ public static function handle(ShopeeSellerScrape $shopee_seller_scrape)
$ai_writeup = new AiWriteup;
$ai_writeup->source = 'shopee';
$ai_writeup->source_url = $shopee_task->product_task->response->url;
$ai_writeup->category_id = $picked_category->category->id;
$ai_writeup->category_id = $picked_category->id;
$ai_writeup->title = $ai_output->title;
$ai_writeup->excerpt = $ai_output->excerpt;
$ai_writeup->featured_image = '';