통합인증 : php8버전 관련 에러 수정
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
global $g5;
|
||||
|
||||
|
||||
if($_GET['directAgency'] == "KFTC") alert_close("서비스 준비중입니다.");
|
||||
|
||||
$sql = "select MAX(cr_id) as max_cr_id from {$g5['cert_history_table']} limit 1";
|
||||
@ -9,15 +8,15 @@
|
||||
$max_cr_id = $res['max_cr_id'];
|
||||
if(empty($max_cr_id)) $max_cr_id = 0;
|
||||
|
||||
if($config['cf_cert_use'] == 2) { // 테스트 일때
|
||||
if($config['cf_cert_use'] == 2) { // 실서비스 일때
|
||||
$mid = 'SRA'.$config['cf_cert_kg_mid']; // 부여받은 MID(상점ID) 입력(영업담당자 문의)
|
||||
$apiKey = $config['cf_cert_kg_cd']; // 부여받은 MID 에 대한 apiKey
|
||||
$mTxId ='SIR_'.$max_cr_id;
|
||||
certify_count_check($member['mb_id'], 'sa'); // 금일 인증시도 횟수 체크
|
||||
} else { // 테스트 일때
|
||||
$mid = "INIiasTest";
|
||||
$apiKey = "TGdxb2l3enJDWFRTbTgvREU3MGYwUT09";
|
||||
$mTxId ='test_'.$max_cr_id;
|
||||
} else {
|
||||
$mid = 'SRA'.$config['cf_cert_kg_mid']; // 부여받은 MID(상점ID) 입력(영업담당자 문의)
|
||||
$apiKey = $config['cf_cert_kg_cd']; // 부여받은 MID 에 대한 apiKey
|
||||
$mTxId ='SIR_'.$max_cr_id.$type;
|
||||
certify_count_check($member['mb_id'], 'sa'); // 금일 인증시도 횟수 체크
|
||||
}
|
||||
$reqSvcCd ='01';
|
||||
|
||||
@ -45,7 +44,6 @@
|
||||
}
|
||||
|
||||
$resultUrl = G5_KGCERT_URL . $resultPage;
|
||||
|
||||
$g5['title'] = 'KG이니시스 통합인증';
|
||||
include_once(G5_PATH.'/head.sub.php');
|
||||
?>
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
// echo '<결과내역>'." '{$mid}' <br/><br/>";
|
||||
// echo $response;
|
||||
|
||||
if($res_data['resultCode'] == "0000") {
|
||||
if($res_data['resultCode'] === "0000") {
|
||||
|
||||
@insert_cert_history($member['mb_id'], 'kg', 'sa'); // 인증성공 시 내역 기록
|
||||
|
||||
|
||||
Reference in New Issue
Block a user