/** * @return int * 检查账户是否存在 */ public static function checkEmail($email) { $userService = new UserService(); $userExist = $userService->isEmailExist($email); if ($userExist == true) { $result['exist'] = "1"; } else { $result['exist'] = "0"; } return json_encode($result); }