Ver Fonte

商品增加定金商品

lizhen_gitee há 1 ano atrás
pai
commit
010225c480

+ 1 - 1
addons/unishop/controller/Product.php

@@ -158,7 +158,7 @@ class Product extends Base
             ->where(['switch' => productModel::SWITCH_ON])
             ->page($page, $pagesize)
             ->order($by, $desc)
-            ->field('id,title,image,sales_price,sales,real_sales')
+            ->field('id,title,image,is_dingjin,market_price,sales_price,sales,real_sales')
             ->select();
 
         if ($result) {

+ 1 - 0
addons/unishop/extend/Product.php

@@ -51,6 +51,7 @@ class Product
                 $data['stock'] = $product['stock'];
                 $data['sales'] = $product['sales'];
                 $data['image'] = $product['image'];
+                $data['is_dingjin'] = $product['is_dingjin'];
             }
         }
         if (is_array($data)){