diff --git a/app/AdminSupplier/Controllers/ProductController.php b/app/AdminSupplier/Controllers/ProductController.php index 17b7378..ba6a469 100644 --- a/app/AdminSupplier/Controllers/ProductController.php +++ b/app/AdminSupplier/Controllers/ProductController.php @@ -139,8 +139,8 @@ class ProductController extends AdminController $form->mobile('verify_mobile')->required(); //信息收集表单 - $options = DiyForm::where('supplier_id', 2)->pluck('name', 'id'); - $form->select('diy_form_id', '信息收集表单')->options($options); + $options = DiyForm::where('supplier_id', Admin::user()->id)->pluck('name', 'id'); + $form->select('diy_form_id', '信息收集表单')->options($options)->required(); //扩展字段 $publish_type = array_intersect_key(