更新
This commit is contained in:
parent
2c80160ede
commit
e019118123
@ -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'] = [];
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user