update
This commit is contained in:
parent
dbd877f019
commit
79e8a5df01
@ -170,8 +170,10 @@
|
||||
return in_array(1, $reimbursement_type);
|
||||
}
|
||||
|
||||
public function checkLoanApply($value): bool|string
|
||||
public function checkLoanApply($value, $rule, $data): bool|string
|
||||
{
|
||||
$reimbursement_type = explode(',', $data['reimbursement_type']);
|
||||
if (!in_array(1, $reimbursement_type)) return true;
|
||||
$loan_apply_data = ProjectLoanApply::where('id', $value)->findOrEmpty();
|
||||
if ($loan_apply_data->isEmpty()) {
|
||||
return '借款单信息不存在';
|
||||
|
@ -170,8 +170,10 @@
|
||||
return in_array(1, $reimbursement_type);
|
||||
}
|
||||
|
||||
public function checkLoanApply($value): bool|string
|
||||
public function checkLoanApply($value, $rule, $data): bool|string
|
||||
{
|
||||
$reimbursement_type = explode(',', $data['reimbursement_type']);
|
||||
if (!in_array(1, $reimbursement_type)) return true;
|
||||
$loan_apply_data = ProjectLoanApply::where('id', $value)->findOrEmpty();
|
||||
if ($loan_apply_data->isEmpty()) {
|
||||
return '借款单信息不存在';
|
||||
|
Loading…
x
Reference in New Issue
Block a user