You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
355 B
21 lines
355 B
3 months ago
|
<?php
|
||
|
|
||
|
namespace app\home\validate;
|
||
|
|
||
|
use think\Validate;
|
||
|
|
||
|
class BaseHomeValidate extends Validate
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* @desc 自定义验证规则
|
||
|
* @param $value
|
||
|
* @param $rule
|
||
|
* @param array $data
|
||
|
* @return bool
|
||
|
*/
|
||
|
protected function isString($value, $rule, array $data=[]): bool
|
||
|
{
|
||
|
return is_string($value);
|
||
|
}
|
||
|
}
|