hrjy 3 years ago
parent
commit
3d097bec2e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/ump/StoreCoupon.php

+ 1 - 1
app/admin/controller/ump/StoreCoupon.php

@@ -57,7 +57,7 @@ class StoreCoupon extends AuthController
         $formbuiderfoot = array();
         $formbuiderfoot[] = Form::number('coupon_price', '优惠券面值', 0)->min(0);
         $formbuiderfoot[] =  Form::selectOne('store_id', '绑定商家', 0)
-            ->options(SystemStore::field('id as value,name as label')->select()->toArray())->filterable(1)->col(10);
+            ->options(SystemStore::field('id as value,name as label')->where('is_show', 1)->where('is_del', 0)->select()->toArray())->filterable(1)->col(10);
 //        $formbuiderfoot[] = Form::number('use_min_price', '最低消费')->min(0);
 //        $formbuiderfoot[] = Form::number('coupon_time', '有效期限')->min(0);
         $formbuiderfoot[] = Form::number('sort', '排序');