|
@@ -280,7 +280,7 @@ class PackagingProcessOutput extends Api
|
|
|
];
|
|
];
|
|
|
$data = [];
|
|
$data = [];
|
|
|
foreach ($arr as $key => $value){
|
|
foreach ($arr as $key => $value){
|
|
|
- if (!(isset($req[$value]) && trim($req[$value])!='')){
|
|
|
|
|
|
|
+ if (!isset($req[$value])){
|
|
|
$this->error('参数错误',$value,$key+1);
|
|
$this->error('参数错误',$value,$key+1);
|
|
|
}
|
|
}
|
|
|
$data[$value] = $req[$value];
|
|
$data[$value] = $req[$value];
|
|
@@ -332,7 +332,7 @@ class PackagingProcessOutput extends Api
|
|
|
];
|
|
];
|
|
|
$data = [];
|
|
$data = [];
|
|
|
foreach ($arr as $key => $value){
|
|
foreach ($arr as $key => $value){
|
|
|
- if (!(isset($req[$value]) && trim($req[$value])!='')){
|
|
|
|
|
|
|
+ if (!isset($req[$value])){
|
|
|
$this->error('参数错误',$value,$key+1);
|
|
$this->error('参数错误',$value,$key+1);
|
|
|
}
|
|
}
|
|
|
$data[$value] = $req[$value];
|
|
$data[$value] = $req[$value];
|