Add (ai gen)

This commit is contained in:
2023-10-01 04:29:03 +08:00
parent 5b4a02778e
commit fcfd320215
2 changed files with 3 additions and 0 deletions

View File

@@ -77,6 +77,7 @@ public static function handle(string $seller, string $country_iso, Category $cat
$shopee_seller_scrape->epoch = $epoch; $shopee_seller_scrape->epoch = $epoch;
$shopee_seller_scrape->filename = $filename; $shopee_seller_scrape->filename = $filename;
$shopee_seller_scrape->category_id = $category->id; $shopee_seller_scrape->category_id = $category->id;
$shopee_seller_scrape->last_ai_written_at = now();
if ($shopee_seller_scrape->save()) { if ($shopee_seller_scrape->save()) {
return (object) compact('seller_shop_task', 'product_task', 'shopee_seller_scrape'); return (object) compact('seller_shop_task', 'product_task', 'shopee_seller_scrape');

View File

@@ -31,6 +31,7 @@ class ShopeeSellerScrape extends Model
protected $casts = [ protected $casts = [
'category_id' => 'int', 'category_id' => 'int',
'epoch' => 'int', 'epoch' => 'int',
'last_ai_written_at' => 'datetime',
]; ];
protected $fillable = [ protected $fillable = [
@@ -39,6 +40,7 @@ class ShopeeSellerScrape extends Model
'country_iso', 'country_iso',
'epoch', 'epoch',
'filename', 'filename',
'last_ai_written_at',
]; ];
public function category() public function category()