dever 3 éve
szülő
commit
81aa3b6baf
2 módosított fájl, 17 hozzáadás és 0 törlés
  1. 15 0
      app/mshop/src/Act.php
  2. 2 0
      app/shop/database/info.php

+ 15 - 0
app/mshop/src/Act.php

@@ -10,6 +10,21 @@ class Act extends Core
     public function buy()
     {
         $shop = $this->shop;
+
+        $goods_id = Dever::input('goods_id');
+        if (!$goods_id) {
+            Dever::alert('请传入商品');
+        }
+        $goods_id = explode(',', $goods_id);
+
+        $sku_id = Dever::input('price_id');
+        if ($sku_id) {
+            $sku_id = explode(',', $sku_id);
+        }
+        
+        $num = Dever::input('num');
+        $num = explode(',', $num);
+            
         # 获取门店分配的仓库和工厂
 
         $sql = 'select *,round((st_distance(point(lng, lat), point('.$shop['lng'].', '.$shop['lat'].'))*111195)/1000, 2) as distance from {table} where '.$where.' order by distance asc';

+ 2 - 0
app/shop/database/info.php

@@ -447,6 +447,7 @@ return array
             'desc'      => '优惠券是否同城可用',
             'match'     => 'is_numeric',
             'update'    => 'radio',
+            'update'    => Dever::input('col') ? 'radio' : false,
             'option'    => $yes,
         ),
 
@@ -458,6 +459,7 @@ return array
             'desc'      => '参与活动',
             'match'     => 'is_numeric',
             'update'    => 'checkbox',
+            'update'    => Dever::input('col') ? 'checkbox' : false,
             'option'    => $act,
         ),