This commit is contained in:
shengchanzhe 2023-12-26 10:26:21 +08:00
parent 2c80160ede
commit e019118123
2 changed files with 2 additions and 2 deletions

View File

@ -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'] = [];

View File

@ -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,