xialei 1 år sedan
förälder
incheckning
1db1b3d4f5
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      app/common/repositories/store/product/ProductRepository.php

+ 2 - 2
app/common/repositories/store/product/ProductRepository.php

@@ -49,7 +49,7 @@ class ProductRepository extends BaseRepository
49
 {
49
 {
50
 
50
 
51
     protected $dao;
51
     protected $dao;
52
-    protected $filed = 'concession_pri,product_id,mer_id,brand_id,unit_name,rate,reply_count,store_info,cate_id,ficti,image,slider_image,store_name,keyword,sort,is_show,sales,price,refusal,cost,ot_price,stock,is_gift_bag,care_count,status,is_used,create_time,seckill,plate_mer_profit,type';
52
+    protected $filed = 'is_status,concession_pri,product_id,mer_id,brand_id,unit_name,rate,reply_count,store_info,cate_id,ficti,image,slider_image,store_name,keyword,sort,is_show,sales,price,refusal,cost,ot_price,stock,is_gift_bag,care_count,status,is_used,create_time,seckill,plate_mer_profit,type';
53
 
53
 
54
     /**
54
     /**
55
      * ProductRepository constructor.
55
      * ProductRepository constructor.
@@ -2043,7 +2043,7 @@ class ProductRepository extends BaseRepository
2043
     // 供应链商品上下架
2043
     // 供应链商品上下架
2044
     public function changeStatus($ids, $is_show)
2044
     public function changeStatus($ids, $is_show)
2045
     {
2045
     {
2046
-        $data = ['is_show' => $is_show];
2046
+        $data = ['is_show' => $is_show, 'is_status' => 1];
2047
         $this->dao->updates($ids, $data);
2047
         $this->dao->updates($ids, $data);
2048
 
2048
 
2049
         foreach ($ids as $id) {
2049
         foreach ($ids as $id) {