modifyUserInfo issue handled
Showing
1 changed file
with
14 additions
and
5 deletions
... | @@ -367,8 +367,8 @@ if (! class_exists("ApiUser")) | ... | @@ -367,8 +367,8 @@ if (! class_exists("ApiUser")) |
367 | function modifyUserInfo() | 367 | function modifyUserInfo() |
368 | { | 368 | { |
369 | $userNo = $this->appUser["no"]; | 369 | $userNo = $this->appUser["no"]; |
370 | //$is_file_change = $this->req["is_file_change"]; // NEW / DEL / NON | ||
371 | // $userNo=$this->req["userNo"]; | 370 | // $userNo=$this->req["userNo"]; |
371 | |||
372 | $userPwd = $this->req["userPwd"]; | 372 | $userPwd = $this->req["userPwd"]; |
373 | $userPwdConfirm = $this->req["userPwdConfirm"]; | 373 | $userPwdConfirm = $this->req["userPwdConfirm"]; |
374 | $nickName = $this->req["nickName"]; | 374 | $nickName = $this->req["nickName"]; |
... | @@ -378,10 +378,19 @@ if (! class_exists("ApiUser")) | ... | @@ -378,10 +378,19 @@ if (! class_exists("ApiUser")) |
378 | $userVehicleType=$this->req["userVehicleType"]; | 378 | $userVehicleType=$this->req["userVehicleType"]; |
379 | $userVehicleWish=$this->req["userVehicleWish"]; | 379 | $userVehicleWish=$this->req["userVehicleWish"]; |
380 | 380 | ||
381 | $sql="SELECT * FROM tblUser WHERE nickName='{$nickName} AND status=1'"; | 381 | $sql="SELECT nickName FROM tblUser WHERE userNo='{$userNo}'"; |
382 | $regInfo=$this->getRow($sql); | 382 | $currentNick=$this->getValue($sql, "nickName"); |
383 | if($regInfo != null) | 383 | // echo "currentNick".$currentNick; |
384 | return $this->makeResultJson(-100, "닉네임 중복을 확인해 주세요"); | 384 | // echo "changeNick".$nickName; |
385 | |||
386 | if($currentNick != $nickName){ | ||
387 | echo "???"; | ||
388 | $sql="SELECT * FROM tblUser WHERE nickName='{$nickName}' AND status=1"; | ||
389 | $regInfo=$this->getRow($sql); | ||
390 | if($regInfo != null) | ||
391 | return $this->makeResultJson(-100, "닉네임 중복을 확인해 주세요"); | ||
392 | |||
393 | } | ||
385 | 394 | ||
386 | if($userPwd != $userPwdConfirm) | 395 | if($userPwd != $userPwdConfirm) |
387 | return $this->makeResultJson(-101, "비밀번호 가 일치하지 않습니다"); | 396 | return $this->makeResultJson(-101, "비밀번호 가 일치하지 않습니다"); | ... | ... |
-
Please register or sign in to post a comment