|
@@ -133,7 +133,7 @@ class ProductAttrValueRepository extends BaseRepository
|
|
133
|
//查询商品上下架
|
133
|
//查询商品上下架
|
|
134
|
$goods_status = GongApiRequest::goods_status($spu_id);
|
134
|
$goods_status = GongApiRequest::goods_status($spu_id);
|
|
135
|
if(!isset($goods_status[0]['status']) || $goods_status[0]['status'] != 1){
|
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
|
if($delivery){
|
137
|
if($delivery){
|
|
138
|
return false;
|
138
|
return false;
|
|
139
|
}else{
|
139
|
}else{
|