This commit is contained in:
weiz 2024-03-29 15:11:27 +08:00
parent 0bb50ba85e
commit 1b18c6d6e0

View File

@ -15,6 +15,7 @@
namespace app\adminapi\validate\financial;
use app\common\model\auth\Admin;
use app\common\model\financial\FinancialBorrowMoney;
use app\common\model\financial\FinancialRepayment;
use app\common\validate\BaseValidate;
@ -119,4 +120,11 @@
return true;
}
public function checkPayer($value): bool|string
{
$data = Admin::where('id', $value)->findOrEmpty();
if ($data->isEmpty()) return '还款人信息不存在';
return true;
}
}