@ -8,12 +8,10 @@
$model=new UserInput(['scenario'=>'login']);
$inputDate=[
"UserInput"=>[
"name" => "kuangweijian",
"password" => "123456546",
]
];
$model->load($inputDate);
$model->load($inputDate,'');
if($model->validate()){
echo "login succ".PHP_EOL;
@ -8,14 +8,12 @@
$model=new UserInput(['scenario'=>'register']);
"name" => "kuangweiian",
"email" => "12345678@qq.com",
"password" => "1234567890",
"pwdConfirm"=> "1234567890",
echo "register succ".PHP_EOL;