uid}' AND `time` >= " . ($Data_NowTime - $Array_ConfigData['Mail']['ExpDate'])); if ($AResult_UserEmailVerify['output'] == "EmptyResult") { // 创建激活码 if (Sql::INSERT("INSERT INTO `index`.xf_email_verify (`uid`, `code`, `time`) VALUES ('{$AResult_UserData['data'][0]->uid}','$Data_Captcha','$Data_NowTime')")) { // 邮件发送 if ($ClassMailer->PostMail($PostData['email'], 1, $Data_Captcha)) Normal::Output(200); else Normal::Output(201); } else Normal::Output(300); } else Normal::Output(500); } else Normal::Output(301); } else Normal::Output(300); } else Normal::Output(600); } else Normal::Output(401); } else Normal::Output(400); } else { // 数据库查找用户是否存在 $AResult_User = Sql::SELECT("SELECT * FROM `index`.xf_user WHERE `uid`='{$_COOKIE['user']}'"); if ($AResult_User['output'] == 'Success') { $Json_Data = [ 'output' => "AlReadyLogin", 'code' => 403, 'data' => [ 'message' => "您已登录", ], ]; } else if ($AResult_User['output'] == 'EmptyResult') { $Json_Data = [ 'output' => "IllegalLogin", 'code' => 403, 'data' => [ 'message' => "非法登录", ], ]; } else { $Json_Data = [ 'output' => $AResult_User['output'], 'code' => 403, 'data' => [ 'message' => "数据库搜索类型错误", ], ]; } echo json_encode($Json_Data, JSON_UNESCAPED_UNICODE); } } else { Normal::Output(100); } End: