<?php
namespace app\validate;
use think\Validate;
class CommonValidate extends Validate
{
protected $rule = [
'phone|手机号' => 'require|mobile',
'type|类型' => 'require',
];
protected $scene = [
'send_sms' => ['phone', 'type'], //发送短信
}