xialei 1 년 전
부모
커밋
0f02a83f77
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/common/repositories/store/product/ProductAttrValueRepository.php

+ 1 - 1
app/common/repositories/store/product/ProductAttrValueRepository.php

@@ -133,7 +133,7 @@ class ProductAttrValueRepository extends BaseRepository
133 133
         //查询商品上下架
134 134
         $goods_status = GongApiRequest::goods_status($spu_id);
135 135
         if(!isset($goods_status[0]['status']) || $goods_status[0]['status'] != 1){
136
-            Db::name('store_product')->where('product_id',$product_id)->update(['is_show' => 1, 'argument' => '此商品已下架'.json_encode($goods_status)]);
136
+            Db::name('store_product')->where('product_id',$product_id)->update(['is_show' => 0, 'argument' => '此商品已下架'.json_encode($goods_status)]);
137 137
             if($delivery){
138 138
                 return false;
139 139
             }else{