This commit is contained in:
mkm 2023-08-21 10:17:26 +08:00
parent 87fbad724a
commit b920c7e5d4

View File

@ -127,7 +127,7 @@ class ContractLogic extends BaseLogic
qualification']; qualification'];
$company = Company::where(['id' => $data['party_b']])->field($field)->find(); $company = Company::where(['id' => $data['party_b']])->field($field)->find();
if(empty($company)){ if(empty($company)){
return self ::setError('公司不存在'); return [];
}else{ }else{
$user=$company->toArray(); $user=$company->toArray();
} }
@ -142,7 +142,7 @@ class ContractLogic extends BaseLogic
qualification']; qualification'];
$user = User::where('id', $data['party_b'])->field($filed)->find(); $user = User::where('id', $data['party_b'])->field($filed)->find();
if(empty($user)){ if(empty($user)){
return self ::setError('用户不存在'); return [];
}else{ }else{
$user=$user->toArray(); $user=$user->toArray();
} }