From 736aa927699fa11434c5526366db29e8b11cda8c Mon Sep 17 00:00:00 2001 From: projectSylas Date: Wed, 29 Sep 2021 03:02:00 +0000 Subject: [PATCH] =?UTF-8?q?=ED=86=B5=ED=95=A9=EC=9D=B8=EC=A6=9D=20:=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/kgcert/kg_find_result.php | 6 +++--- plugin/kgcert/kg_request.php | 5 +++-- plugin/kgcert/kg_result.php | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/plugin/kgcert/kg_find_result.php b/plugin/kgcert/kg_find_result.php index 77de6cf6e..864e6e9ca 100644 --- a/plugin/kgcert/kg_find_result.php +++ b/plugin/kgcert/kg_find_result.php @@ -27,11 +27,11 @@ curl_close($ch); $res_data = json_decode($response, true); - if($res_data['resultCode'] == "0000") { + if($res_data['resultCode'] === "0000") { @insert_cert_history('@password_lost@', 'kg', 'sa'); // 인증성공 시 내역 기록 - $cert_type = 'sa'; // 인증타입 + $cert_type = 'sa'; // 인증타입 $cert_no = $res_data['txId']; // 이니시스 트랜잭션 ID $phone_no = $res_data['userPhone']; // 전화번호 $user_name = $res_data['userName']; // 이름 @@ -50,7 +50,7 @@ alert_close("인증하신 정보로 가입된 회원정보가 없습니다."); exit; } - }else{ + } else { // 인증실패 curl의 인증실패 체크 alert_close('코드 : '.$res_data['resultCode'].' '.urldecode($res_data['resultMsg'])); exit; diff --git a/plugin/kgcert/kg_request.php b/plugin/kgcert/kg_request.php index f93dea495..0b78e5d03 100644 --- a/plugin/kgcert/kg_request.php +++ b/plugin/kgcert/kg_request.php @@ -26,7 +26,7 @@ $flgFixedUser = (!empty($member['mb_id']) && !empty($member['mb_name']) && !empty($member['mb_hp']) && !empty($member['mb_birth']))? 'Y' : 'N'; // 특정사용자 고정시 : Y 세팅및 아래 해시 데이터 생성 - // php8버전 값체크 경고 때문에 필수값이 아닌 값이 없을수 있는 선택값들은 선언해주어야함 + // php8버전 값체크 경고 때문에 필수값이 아닌 값이 없을수 있는 선택값들은 초기화해주어야함 $userName = ''; $userPhone = ''; $userBirth = ''; @@ -40,7 +40,8 @@ $plainText2 = hash("sha256",(string)$userName.(string)$mid.(string)$userPhone.(string)$mTxId.(string)$userBirth.(string)$reqSvcCd); $userHash = $plainText2; } - switch($_GET['pageType']){ + + switch($_GET['pageType']) { case "register": $resultPage = "/kg_result.php"; break; diff --git a/plugin/kgcert/kg_result.php b/plugin/kgcert/kg_result.php index 7cc5b74d3..decfa26ca 100644 --- a/plugin/kgcert/kg_result.php +++ b/plugin/kgcert/kg_result.php @@ -34,7 +34,7 @@ @insert_cert_history($member['mb_id'], 'kg', 'sa'); // 인증성공 시 내역 기록 - $cert_type = 'sa'; // 인증타입 + $cert_type = 'sa'; // 인증타입 $cert_no = $res_data['txId']; // 이니시스 트랜잭션 ID $phone_no = $res_data['userPhone']; // 전화번호 $user_name = $res_data['userName']; // 이름 @@ -71,7 +71,7 @@ //set_session("ss_cert_sex", ($sex_code=="01"?"M":"F")); // 이니시스 통합인증은 성별정보 리턴 없음 set_session('ss_cert_dupinfo', $mb_dupinfo); - }else{ + } else { // 인증실패 curl의 인증실패 체크 alert_close('코드 : '.$res_data['resultCode'].' '.urldecode($res_data['resultMsg'])); exit;