更新
This commit is contained in:
parent
3f675a11bf
commit
5fe3d5c824
@ -83,12 +83,13 @@ class StoreProduct extends BaseController
|
||||
{
|
||||
$res = $this->request->params($this->repository::CREATE_PARAMS);
|
||||
$merchant = app()->make(MerchantRepository::class)->get($merId);
|
||||
if(isset($res['cate_id']) && $res['cate_id'] <0){
|
||||
$type_code=Db::name('merchant_type')->where('mer_type_id',$merchant['merchant']['type_id'])->value('type_code');
|
||||
if($res['cate_id'] <=0){
|
||||
$type_code=Db::name('merchant_type')->where('mer_type_id',$merchant['type_id'])->value('type_code');
|
||||
if($type_code=='PersonalStore'){
|
||||
$res['cate_id']=2231;
|
||||
}
|
||||
}
|
||||
|
||||
$data = $this->repository->checkParams($res, $merId);
|
||||
$data['mer_id'] = $merId;
|
||||
$data['is_gift_bag'] = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user