if (! $validate->check($params)) { return json(array( "info" => $this->error($validate->getError()) ));//这里要用json处理下 }