diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index 1546f5e8..6f36ec4e 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -341,7 +341,7 @@ class ProductRepository extends BaseRepository } $ret = Spu::getInstance()->where('product_id', $id)->whereIn('product_type', [0, 98, 99])->find(); app()->make(SpuRepository::class)->update($ret->spu_id, ['mer_labels' => $data['mer_labels']]); - return true; + return false; } if (!$data['spec_type']) { $data['attr'] = []; diff --git a/app/controller/api/store/product/StoreProduct.php b/app/controller/api/store/product/StoreProduct.php index 5625a0c2..601cc19c 100644 --- a/app/controller/api/store/product/StoreProduct.php +++ b/app/controller/api/store/product/StoreProduct.php @@ -224,7 +224,7 @@ class StoreProduct extends BaseController return app('json')->fail('编辑免申商品参数错误'); } $res=$this->repository->freeTrial($id, $data,$mer_id); - if($res && $params['is_stock']==1){ + if($res && $data['is_stock']==1){ $arr=[ 'mer_id'=>$mer_id, 'uid'=>$uid,