|
|
@ -1591,7 +1591,10 @@ class UserService extends BaseHomeService |
|
|
|
} |
|
|
|
|
|
|
|
// 参数校验 nation phone sms_code |
|
|
|
validate(UserValidate::class)->scene('apply_loan')->check($param); |
|
|
|
// validate(UserValidate::class)->scene('apply_loan')->check($param); |
|
|
|
if (empty($param['num']) || $param['num'] < 0 || empty($param['day']) || $param['day'] < 0) { |
|
|
|
return $this->toData('500', lang('parameter_error')); |
|
|
|
} |
|
|
|
$count = UserLoanModel::where('status', 0)->where('user_id', $userId)->count(); |
|
|
|
if ($count > 0) { |
|
|
|
return $this->toData('500', lang('there_is_an_application_record_please_wait_for_review')); |
|
|
|