moshaorui vor 4 Monaten
Ursprung
Commit
56c1d47b3e

+ 1 - 0
app/Distributor/Controllers/DistProductController.php

@@ -164,6 +164,7 @@ class DistProductController extends AdminDistController
             });
             // 多图上传
             $form->multipleImage('images', admin_trans_label('images'))
+                ->retainable()//禁止删OSS图
                 ->sortable() // 可拖动排序
                 ->removable() // 可移除图片
                 ->autoUpload() // 自动上传

+ 1 - 0
app/Distributor/Repositories/SitePagesTag.php

@@ -56,6 +56,7 @@ class SitePagesTag extends EloquentRepository
         $tagArray = array_map('trim', $tagArray);
         $existingTags = $model
             ->whereIn('name', $tagArray)
+            ->where('dist_id', getDistributorId())
             ->pluck('id', 'name')  // We also get the name => id mapping
             ->toArray();
         $tagsToInsert = array_diff($tagArray, array_keys($existingTags));