From 35427edd3b270dbee476c0432bc59e72ef8d37d2 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 30 Jan 2013 16:25:45 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B0=80=EC=83=81=EA=B3=84=EC=A2=8C=20?= =?UTF-8?q?=EC=9E=85=EA=B8=88=20=EC=A0=95=EB=B3=B4=20=EA=B8=B0=EB=A1=9D=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/settle_kcp_common.php | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/shop/settle_kcp_common.php b/shop/settle_kcp_common.php index c80209db4..1e8af15e5 100644 --- a/shop/settle_kcp_common.php +++ b/shop/settle_kcp_common.php @@ -1,7 +1,15 @@ $value) { + fwrite($fp, $key." = ".$value." / "); +} +fclose($fp); +*/ /*------------------------------------------------------------------------------ ※ KCP 에서 가맹점의 결과처리 페이지로 데이터를 전송할 때에, 아래와 같은 @@ -46,7 +54,7 @@ switch ($_SERVER['REMOTE_ADDR']) { /* = 주시기 바랍니다. 등록 방법은 연동 매뉴얼을 참고하시기 바랍니다. = */ /* ============================================================================== */ - //write_log("$g4[path]/data/log/kcp_common.log", print_r($_POST)); + //write_log(G4_DATA_PATH."/log/kcp_common.log", print_r($_POST)); /* ============================================================================== */ /* = 02. 공통 통보 데이터 받기 = */ @@ -138,15 +146,19 @@ switch ($_SERVER['REMOTE_ADDR']) { /* = -------------------------------------------------------------------------- = */ /* = 03-1. 가상계좌 입금 통보 데이터 DB 처리 작업 부분 = */ /* = -------------------------------------------------------------------------- = */ + if ( $tx_cd == "TX00" ) { // 주문서 UPDATE + $od_receipt_time = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3 \\4:\\5:\\6", $tx_tm); + $sql = " update {$g4['yc4_order_table']} set od_receipt_amount = '$ipgm_mnyx', - od_receipt_time = '$tx_tm', - od_cash_authno = '$cash_a_no + od_receipt_time = '$od_receipt_time', + od_cash_authno = '$cash_a_no' where od_id = '$order_no' and tno = '$tno' "; + sql_query($sql, FALSE); }