修改商品创建的错误
This commit is contained in:
parent
f80bbcd2d8
commit
5a9fd1b8c4
@ -13,9 +13,9 @@ class ProductCreate
|
|||||||
|
|
||||||
public function handle($event)
|
public function handle($event)
|
||||||
{
|
{
|
||||||
$merchant=Db::name('merchant')->where('status',1)->where('mer_state',1)->where('mer_id',$event['product']['mer_id'])->find();
|
$merchant=Db::name('merchant')->where('status',1)->where('is_del',0)->where('mer_id',$event['product']['mer_id'])->find();
|
||||||
if ($merchant['type_id']==11){
|
if (empty($merchant)) {
|
||||||
$this->CloudMerchanSpu($merchant,$event);
|
return false;
|
||||||
}
|
}
|
||||||
if ($merchant['type_id']==13 ||$merchant['type_id']==11){
|
if ($merchant['type_id']==13 ||$merchant['type_id']==11){
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user