휴대폰 본인확인 사용, 미사용, 테스트 적용
This commit is contained in:
@ -8,6 +8,7 @@ $home_dir = G4_PLUGIN_PATH.'/kcp'; // ct_cli 절대경로 ( bin 전까지 )
|
||||
//web_siteid 값이 없으면 KCP 에서 지정한 값으로 설정됨
|
||||
$web_siteid = '';
|
||||
|
||||
/*
|
||||
if($config['cf_kcpcert_site_cd'] && $config['cf_kcpcert_site_cd'] != 'S6186') { // 실인증
|
||||
$site_cd = $config['cf_kcpcert_site_cd'];
|
||||
$cert_url = 'https://cert.kcp.co.kr/kcp_cert/cert_view.jsp';
|
||||
@ -15,9 +16,21 @@ if($config['cf_kcpcert_site_cd'] && $config['cf_kcpcert_site_cd'] != 'S6186') {
|
||||
$site_cd = 'S6186';
|
||||
$cert_url = 'https://testcert.kcp.co.kr/kcp_cert/cert_view.jsp';
|
||||
}
|
||||
*/
|
||||
if ($config['cf_kcpcert_use'] == 1) { // 실제사용
|
||||
//$site_cd = 'SM'.$config['cf_kcpcert_site_cd'];
|
||||
$site_cd = $config['cf_kcpcert_site_cd'];
|
||||
$cert_url = 'https://cert.kcp.co.kr/kcp_cert/cert_view.jsp';
|
||||
} else if ($config['cf_kcpcert_use'] == -1) { // 테스트사용
|
||||
$site_cd = 'S6186';
|
||||
$cert_url = 'https://testcert.kcp.co.kr/kcp_cert/cert_view.jsp';
|
||||
} else { // 사용안함
|
||||
$site_cd = '';
|
||||
$cert_url = '';
|
||||
}
|
||||
|
||||
if(!$site_cd)
|
||||
alert('KCP 휴대폰인증 사이트코드가 없습니다.\\관리자 > 기본환경설정에 사이트코드를 입력해 주십시오.', G4_URL);
|
||||
alert('KCP 휴대폰 본인확인 서비스 사이트코드가 없습니다.\\관리자 > 기본환경설정에 KCP 사이트코드를 입력해 주십시오.', G4_URL);
|
||||
|
||||
// KCP 인증 라이브러리
|
||||
require G4_KCP_PATH.'/lib/ct_cli_lib.php';
|
||||
|
||||
@ -11,7 +11,7 @@ if(!$ordr_idxx = get_session('ss_uniqid'))
|
||||
<!-- 유저네임 -->
|
||||
<input type="hidden" name="user_name" value="" />
|
||||
<!-- 주문번호 -->
|
||||
<input type="hidden" name="ordr_idxx" value="<?=$ordr_idxx?>">
|
||||
<input type="hidden" name="ordr_idxx" value="<?=$ordr_idxx?>">
|
||||
<!-- 요청종류 -->
|
||||
<input type="hidden" name="req_tx" value="cert"/>
|
||||
<!-- 인증종류 -->
|
||||
@ -25,7 +25,7 @@ if(!$ordr_idxx = get_session('ss_uniqid'))
|
||||
<!-- 사이트코드 -->
|
||||
<input type="hidden" name="site_cd" value="<?= $site_cd ?>" />
|
||||
<!-- Ret_URL : 인증결과 리턴 페이지 ( 가맹점 URL 로 설정해 주셔야 합니다. ) -->
|
||||
<input type="hidden" name="Ret_URL" value="<?=G4_KCP_PATH?>/kcpcert_result.php" />
|
||||
<input type="hidden" name="Ret_URL" value="<?=G4_KCP_URL?>/kcpcert_result.php" />
|
||||
<!-- cert_otp_use 필수 ( 메뉴얼 참고)
|
||||
Y : 실명 확인 + OTP 점유 확인 , N : 실명 확인 only
|
||||
-->
|
||||
|
||||
@ -170,6 +170,7 @@ $(function() {
|
||||
|
||||
// 인증정보
|
||||
$opener.$("input[name=mb_hp]").val("<?=$phone_no?>");
|
||||
$opener.$("input[name=mb_name]").val("<?=$user_name?>");
|
||||
$opener.$("input[name=kcpcert_no]").val("<?=$md5_cert_no?>");
|
||||
$opener.$("input[name=kcpcert_time]").val("<?=G4_TIME_YMDHIS?>");
|
||||
window.close();
|
||||
|
||||
@ -90,7 +90,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
<? if ($config['cf_use_hp']) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="reg_mb_hp">핸드폰번호<? if ($config['cf_req_hp']) {?><strong class="sound_only">필수</strong><?}?></label></th>
|
||||
<th scope="row"><label for="reg_mb_hp">휴대폰번호<? if ($config['cf_req_hp']) {?><strong class="sound_only">필수</strong><?}?></label></th>
|
||||
<td><input type="text" name="mb_hp" value="<?=$member[mb_hp]?>" id="reg_mb_hp" <?=$config['cf_req_hp']?"required":"";?> class="frm_input <?=$config['cf_req_hp']?"required":"";?>" maxlength="20"></td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
@ -169,7 +169,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<th scope="row"><label for="reg_mb_sms">SMS 수신여부</label></th>
|
||||
<td>
|
||||
<input type="checkbox" name="mb_sms" value="1" id="reg_mb_sms" <?=($w=='' || $member['mb_sms'])?'checked':'';?>>
|
||||
핸드폰 문자메세지를 받겠습니다.
|
||||
휴대폰 문자메세지를 받겠습니다.
|
||||
</td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
|
||||
@ -88,12 +88,12 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<? } ?>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><label for="reg_mb_hp">핸드폰번호<strong class="sound_only">필수</strong></label></th>
|
||||
<th scope="row"><label for="reg_mb_hp">휴대폰번호<strong class="sound_only">필수</strong></label></th>
|
||||
<td>
|
||||
<input type="hidden" name="kcpcert_no" value="">
|
||||
<input type="hidden" name="kcpcert_time" value="<?=$member['mb_hp_certify']?>">
|
||||
<input type="hidden" name="old_mb_hp" value="<?=$member['mb_hp']?>">
|
||||
<input type="text" id="reg_mb_hp" name="mb_hp" class="frm_input required" maxlength="20" required value="<?=$member['mb_hp']?>">
|
||||
<input type="text" id="reg_mb_hp" name="mb_hp" class="frm_input required" maxlength="20" required readonly value="<?=$member['mb_hp']?>">
|
||||
<button type="button" id="win_kcpcert" class="btn_frmline">휴대폰인증</button>
|
||||
<noscript>휴대폰인증을 위해서는 자바스크립트 사용이 가능해야합니다.</noscript>
|
||||
</td>
|
||||
@ -173,7 +173,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<th scope="row"><label for="reg_mb_sms">SMS 수신여부</label></th>
|
||||
<td>
|
||||
<input type="checkbox" id="reg_mb_sms" name="mb_sms" value="1" <?=($w=='' || $member['mb_sms'])?'checked':'';?>>
|
||||
핸드폰 문자메세지를 받겠습니다.
|
||||
휴대폰 문자메세지를 받겠습니다.
|
||||
</td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
|
||||
@ -22,17 +22,17 @@ if($w == '') {
|
||||
// 본인인증체크
|
||||
$kcpcert_no = trim($_POST['kcpcert_no']);
|
||||
if(!$kcpcert_no)
|
||||
alert('휴대폰인증이 되지 않았습니다. 휴대폰인증을 해주세요.', "", true, true);
|
||||
alert('휴대폰인증이 되지 않았습니다. 휴대폰인증을 해주세요.', '', true, true);
|
||||
|
||||
// 본인인증 hash 체크
|
||||
$reg_hash = md5($reg_hp.$mb_name.$kcpcert_no);
|
||||
if(get_session('ss_kcpcert_hash') != $reg_hash)
|
||||
alert('휴대폰인증 정보가 올바르지 않습니다. 정상적인 방법으로 이용해 주세요.', "", true, true);
|
||||
alert('이름 또는 휴대폰번호가 올바르지 않습니다. 정상적인 방법으로 이용해 주세요.', '', true, true);
|
||||
|
||||
// 성인인증을 사용한다면
|
||||
if($config['cf_adult_check']) {
|
||||
if(get_session('ss_adult_check') != 'Y')
|
||||
alert('성인인증이 되지 않았습니다. 다음에 다시 가입해 주세요.', "", true, true);
|
||||
alert('성인인증이 되지 않았습니다. 다음에 다시 가입해 주세요.', '', true, true);
|
||||
}
|
||||
} else if($w == 'u') {
|
||||
// 휴대폰번호 변경체크
|
||||
@ -42,12 +42,12 @@ if($w == '') {
|
||||
// 본인인증체크
|
||||
$kcpcert_no = trim($_POST['kcpcert_no']);
|
||||
if(!$kcpcert_no)
|
||||
alert('휴대폰번호가 변경됐습니다. 휴대폰인증을 해주세요.', "", true, true);
|
||||
alert('휴대폰번호가 변경됐습니다. 휴대폰인증을 해주세요.', '', true, true);
|
||||
|
||||
// 본인인증 hash 체크
|
||||
$reg_hash = md5($reg_hp.$mb_name.$kcpcert_no);
|
||||
if(get_session('ss_kcpcert_hash') != $reg_hash)
|
||||
alert('휴대폰인증 정보가 올바르지 않습니다. 정상적인 방법으로 이용해 주세요.', "", true, true);
|
||||
alert('휴대폰인증 정보가 올바르지 않습니다. 정상적인 방법으로 이용해 주세요.', '', true, true);
|
||||
}
|
||||
}
|
||||
/* ======================================================================================================= */
|
||||
|
||||
Reference in New Issue
Block a user