更新
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();
|
$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']]);
|
app()->make(SpuRepository::class)->update($ret->spu_id, ['mer_labels' => $data['mer_labels']]);
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
if (!$data['spec_type']) {
|
if (!$data['spec_type']) {
|
||||||
$data['attr'] = [];
|
$data['attr'] = [];
|
||||||
|
@ -224,7 +224,7 @@ class StoreProduct extends BaseController
|
|||||||
return app('json')->fail('编辑免申商品参数错误');
|
return app('json')->fail('编辑免申商品参数错误');
|
||||||
}
|
}
|
||||||
$res=$this->repository->freeTrial($id, $data,$mer_id);
|
$res=$this->repository->freeTrial($id, $data,$mer_id);
|
||||||
if($res && $params['is_stock']==1){
|
if($res && $data['is_stock']==1){
|
||||||
$arr=[
|
$arr=[
|
||||||
'mer_id'=>$mer_id,
|
'mer_id'=>$mer_id,
|
||||||
'uid'=>$uid,
|
'uid'=>$uid,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user