新新新新生2018-11-01 19:18:54
public function checkLogin(Request $request)
{
//初始返回参数
$status =0;
$result ='';
$data = $request ->param();
//创建验证规则
// $rule =[
// 'name' => 'require',
// 'password' =>'require',
// 'verify' =>'require|captcha',
// ];
// //进行验证
// $result = $this->validate($data,$rule);
return ['status'=>$status,'message'=>$result,'data'=>$data];
}