VerificationCodeValidate.php 333 B

12345678910111213141516
  1. <?php
  2. namespace app\admin\validate\sms;
  3. use think\Validate;
  4. class VerificationCodeValidate extends Validate
  5. {
  6. protected $rule = [
  7. 'mobile' => 'require|mobile',
  8. ];
  9. protected $message = [
  10. 'mobile.require' => '手机号不能为空',
  11. 'mobile.mobile' => '手机号格式不正确',
  12. ];
  13. }