From 84213ac217639650ed105661982a5a5f8db97779 Mon Sep 17 00:00:00 2001 From: liapples Date: Tue, 28 Sep 2021 14:54:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=94=B6=E9=9B=86=E8=A1=A8?= =?UTF-8?q?=E5=8D=95required=E5=92=8Csupplier=5Fid=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/AdminSupplier/Controllers/ProductController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(