Membersecurity.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. /**
  5. * ============================================================================
  6. *
  7. * ============================================================================
  8. * 版权所有 2014-2028 浙江惠利玛产业互联网有限公司,并保留所有权利。
  9. * 网站地址: https://www.valimart.net/
  10. * ----------------------------------------------------------------------------
  11. *
  12. * ============================================================================
  13. * 验证器
  14. */
  15. class Membersecurity extends Validate
  16. {
  17. protected $rule = [
  18. 'email'=>'email',
  19. 'password'=>'require',
  20. 'confirm_password'=>'require',
  21. 'mobile'=>'require',
  22. 'vcode'=>'require',
  23. ];
  24. protected $message = [
  25. 'email.email'=>'请正确填写邮箱',
  26. 'password.require'=>'请正确输入密码',
  27. 'confirm_password.require'=>'请正确输入确认密码',
  28. 'mobile.require'=>'请正确填写手机号',
  29. 'vcode.require'=>'请正确填写手机验证码',
  30. ];
  31. protected $scene = [
  32. 'send_bind_email' => ['email'],
  33. 'modify_pwd' => ['password', 'confirm_password'],
  34. 'modify_paypwd' => ['password', 'confirm_password'],
  35. 'modify_mobile' => ['mobile', 'vcode'],
  36. 'send_modify_mobile' => ['mobile'],
  37. ];
  38. }