12345678910111213141516171819202122232425 |
- <?php
- namespace app\common\validate;
- use think\Validate;
- class PhoneMonitor extends Validate{
- protected $rule = [
- 'phone|电话' => 'require|checkPhone',
- 'user_id|负责人' => 'require|gt:0',
- ];
- protected $message = [
- ];
- protected $scene = [
- ];
- protected function checkPhone($value){
- return !check_mobile($value)?false:true;
- }
- }
|