0
0

PhoneMonitor.php 399 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. class PhoneMonitor extends Validate{
  5. protected $rule = [
  6. 'phone|电话' => 'require|checkPhone',
  7. 'user_id|负责人' => 'require|gt:0',
  8. ];
  9. protected $message = [
  10. ];
  11. protected $scene = [
  12. ];
  13. protected function checkPhone($value){
  14. return !check_mobile($value)?false:true;
  15. }
  16. }