b7ce005f by sayhoChun

modifyUserInfo issue handled

1 parent c7829abe
......@@ -367,8 +367,8 @@ if (! class_exists("ApiUser"))
function modifyUserInfo()
{
$userNo = $this->appUser["no"];
//$is_file_change = $this->req["is_file_change"]; // NEW / DEL / NON
// $userNo=$this->req["userNo"];
$userPwd = $this->req["userPwd"];
$userPwdConfirm = $this->req["userPwdConfirm"];
$nickName = $this->req["nickName"];
......@@ -378,10 +378,19 @@ if (! class_exists("ApiUser"))
$userVehicleType=$this->req["userVehicleType"];
$userVehicleWish=$this->req["userVehicleWish"];
$sql="SELECT * FROM tblUser WHERE nickName='{$nickName} AND status=1'";
$regInfo=$this->getRow($sql);
if($regInfo != null)
return $this->makeResultJson(-100, "닉네임 중복을 확인해 주세요");
$sql="SELECT nickName FROM tblUser WHERE userNo='{$userNo}'";
$currentNick=$this->getValue($sql, "nickName");
// echo "currentNick".$currentNick;
// echo "changeNick".$nickName;
if($currentNick != $nickName){
echo "???";
$sql="SELECT * FROM tblUser WHERE nickName='{$nickName}' AND status=1";
$regInfo=$this->getRow($sql);
if($regInfo != null)
return $this->makeResultJson(-100, "닉네임 중복을 확인해 주세요");
}
if($userPwd != $userPwdConfirm)
return $this->makeResultJson(-101, "비밀번호 가 일치하지 않습니다");
......