下面是我的存储过程:DELIMITER$$----Procedures--DROPPROCEDUREIFEXISTS`checkLogin`$$CREATEDEFINER=`root`@`localhost`PROCEDURE`checkLogin`(IN`uname`VARCHAR(255),IN`pwd`VARCHAR(255))BEGINSELECTa.id,a.role_id,b.nameFROMuserTableasaLEFTJOINroleTableasbonb.id=a.role_idWHEREa.username=unameANDpassword=pwd;END$$DE
按下提交按钮时,我的loginViewController中有此调用:lethttp=HTTPHelper()http.post("http://someUrl.com/Login/userEmail/\(username.text)/Pswd/\(userPass.text)",postCompleted:self.checkLogin)虽然我发送的checkLogin功能只是在执行:funccheckLogin(succeed:Bool,msg:String){if(succeed){self.performSegueWithIdentifier("logInTrue",sende
按下提交按钮时,我的loginViewController中有此调用:lethttp=HTTPHelper()http.post("http://someUrl.com/Login/userEmail/\(username.text)/Pswd/\(userPass.text)",postCompleted:self.checkLogin)虽然我发送的checkLogin功能只是在执行:funccheckLogin(succeed:Bool,msg:String){if(succeed){self.performSegueWithIdentifier("logInTrue",sende