12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace app\common\validate;
- use think\Validate;
- /**
-
- *
-
- *
- * ----------------------------------------------------------------------------
- *
-
- * 验证器
- */
- class Sellermsg extends Validate
- {
- protected $rule = [
- 'storems_short_number' => 'regex:^1[0-9]{10}$',
- 'storems_mail_number' => 'email'
- ];
- protected $message = [
- 'storems_short_number.regex' => '请填写正确的手机号码',
- 'storems_mail_number.email' => '请填写正确的邮箱'
- ];
- protected $scene = [
- 'save_msg_setting' => ['storems_short_number', 'storems_mail_number'],
- ];
- }
|