wupengfei 3 tahun lalu
induk
melakukan
43b68d95ca
1 mengubah file dengan 7 tambahan dan 0 penghapusan
  1. 7 0
      application/store/controller/IntegralGoods.php

+ 7 - 0
application/store/controller/IntegralGoods.php

@@ -65,6 +65,13 @@ class IntegralGoods extends Controller
     public function add()
     {
         $this->title = '添加商品';
+        $lev_set = Db::table('member_level')->field('id,name')->select();
+        $lev_set = array_column($lev_set,null,'id');
+        $lev_data = ['0'=>'不限'];
+        array_map(function ($v)use (&$lev_data){
+            $lev_data[$v['id']] = $v['name'];
+        },$lev_set);
+        $this->lev_set =$lev_data;
         // 分类
         $goods_cate = Db::table('store_goods_cate')
             ->field('id,title')