fetch(); } // 登录验证 public function yanzheng() { $membermod = new membermod(); $list = request()->post(); $validate = new \app\login\validate\Yanzheng; $data = request()->post('username'); if (!$validate->check($data)) { dump($validate->getError()); } // return true; } }