xialei 1 год назад
Родитель
Сommit
1db1b3d4f5
1 измененных файлов с 2 добавлено и 2 удалено
  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 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 55
      * ProductRepository constructor.
@@ -2043,7 +2043,7 @@ class ProductRepository extends BaseRepository
2043 2043
     // 供应链商品上下架
2044 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 2047
         $this->dao->updates($ids, $data);
2048 2048
 
2049 2049
         foreach ($ids as $id) {