更新
This commit is contained in:
parent
87fbad724a
commit
b920c7e5d4
@ -127,7 +127,7 @@ class ContractLogic extends BaseLogic
|
||||
qualification'];
|
||||
$company = Company::where(['id' => $data['party_b']])->field($field)->find();
|
||||
if(empty($company)){
|
||||
return self ::setError('公司不存在');
|
||||
return [];
|
||||
}else{
|
||||
$user=$company->toArray();
|
||||
}
|
||||
@ -142,7 +142,7 @@ class ContractLogic extends BaseLogic
|
||||
qualification'];
|
||||
$user = User::where('id', $data['party_b'])->field($filed)->find();
|
||||
if(empty($user)){
|
||||
return self ::setError('用户不存在');
|
||||
return [];
|
||||
}else{
|
||||
$user=$user->toArray();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user