Forráskód Böngészése

feat: add product album_id

igb 5 napja
szülő
commit
38539da765
2 módosított fájl, 4 hozzáadás és 1 törlés
  1. 1 0
      app/Distributor/Forms/ImportProduct.php
  2. 3 1
      app/Models/DistProduct.php

+ 1 - 0
app/Distributor/Forms/ImportProduct.php

@@ -50,6 +50,7 @@ class ImportProduct extends Form
                     'seo_keywords' => '',
                     'seo_description' => '',
                     'status' => 2,
+                    'album_id' => $item['id'],//图库ID
                     'dist_id' => getDistributorId(),
                     'created_at' => now(), // 自动填充创建时间
                     'updated_at' => now(), // 自动填充更新时间

+ 3 - 1
app/Models/DistProduct.php

@@ -46,7 +46,9 @@ class DistProduct extends Model
         'seo_description',
         'slug',
         'status',
-        'review_reply'
+        'review_reply',
+        'album_id',
+
     ];