|
@@ -13,7 +13,7 @@ use app\admin\model\OrderReturn;use app\admin\model\SaleReturn;class ThData
|
|
public function handle($event)
|
|
public function handle($event)
|
|
{//
|
|
{//
|
|
\app\admin\model\ThData::create($event);
|
|
\app\admin\model\ThData::create($event);
|
|
- $data=[];
|
|
|
|
|
|
+ $data=[];
|
|
switch ($event['th_type']){
|
|
switch ($event['th_type']){
|
|
case 1:
|
|
case 1:
|
|
$data=$this->beforeOrder($event);
|
|
$data=$this->beforeOrder($event);
|
|
@@ -53,7 +53,7 @@ use app\admin\model\OrderReturn;use app\admin\model\SaleReturn;class ThData
|
|
"apply_id"=>$info->apply_id,
|
|
"apply_id"=>$info->apply_id,
|
|
"apply_name"=>$info->apply_name,
|
|
"apply_name"=>$info->apply_name,
|
|
];
|
|
];
|
|
- }
|
|
|
|
|
|
+ }else $data=[];
|
|
return $data;
|
|
return $data;
|
|
}
|
|
}
|
|
//售前退货 供应商不同意退货
|
|
//售前退货 供应商不同意退货
|
|
@@ -81,7 +81,7 @@ use app\admin\model\OrderReturn;use app\admin\model\SaleReturn;class ThData
|
|
'apply_id'=>$info->apply_id,
|
|
'apply_id'=>$info->apply_id,
|
|
'apply_name'=>$info->apply_name,
|
|
'apply_name'=>$info->apply_name,
|
|
];
|
|
];
|
|
- }
|
|
|
|
|
|
+ }else $data=[];
|
|
return $data;
|
|
return $data;
|
|
}
|
|
}
|
|
|
|
|