| 1234567891011121314151617181920212223242526 |
- <?php
- namespace App\Module\Fund\Validators;
- use App\Module\Fund\Enums\FUND_TYPE;
- use UCore\Validator;
- /**
- * 账户ID验证,有效true
- *
- */
- class FundIdCheck extends Validator
- {
- public function validate(mixed $value, array $data): bool
- {
- $ks = FUND_TYPE::toArray();
- if (in_array($value, array_values($ks))) {
- return true;
- }
- return false;
- }
- }
|