lg 에스크로 배송 연동 기능 추가
This commit is contained in:
@ -16,14 +16,6 @@ if($config['cf_sms_use'] == 'icode' && $_POST['send_sms'])
|
||||
$SMS->SMS_con($config['cf_icode_server_ip'], $config['cf_icode_id'], $config['cf_icode_pw'], $config['cf_icode_server_port']);
|
||||
}
|
||||
|
||||
$escrow_count = 0;
|
||||
if($_POST['send_escrow']) {
|
||||
$escrow_tno = array();
|
||||
$escrow_corp = array();
|
||||
$escrow_numb = array();
|
||||
$escrow_idx = 0;
|
||||
}
|
||||
|
||||
if($_FILES['excelfile']['tmp_name']) {
|
||||
$file = $_FILES['excelfile']['tmp_name'];
|
||||
|
||||
@ -142,11 +134,11 @@ if($_FILES['excelfile']['tmp_name']) {
|
||||
|
||||
// 에스크로 배송
|
||||
if($_POST['send_escrow'] && $od['od_tno'] && $od['od_escrow']) {
|
||||
$escrow_tno[$escrow_idx] = $od['od_tno'];
|
||||
$escrow_numb[$escrow_idx] = $od_invoice;
|
||||
$escrow_corp[$escrow_idx] = $od_delivery_company;
|
||||
$escrow_idx++;
|
||||
$escrow_count++;
|
||||
$escrow_tno = $od['od_tno'];
|
||||
$escrow_numb = $od_invoice;
|
||||
$escrow_corp = $od_delivery_company;
|
||||
|
||||
include(G5_SHOP_PATH.'/'.$od['od_pg'].'/escrow.register.php');
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -157,12 +149,6 @@ if($config['cf_sms_use'] == 'icode' && $_POST['send_sms'] && $sms_count)
|
||||
$SMS->Send();
|
||||
}
|
||||
|
||||
// 에스크로 배송
|
||||
if($_POST['send_escrow'] && $escrow_count)
|
||||
{
|
||||
include_once('./orderescrow.inc.php');
|
||||
}
|
||||
|
||||
$g5['title'] = '엑셀 배송일괄처리 결과';
|
||||
include_once(G5_PATH.'/head.sub.php');
|
||||
?>
|
||||
|
||||
@ -1,65 +0,0 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
include_once(G5_SHOP_PATH.'/settle_kcp.inc.php');
|
||||
|
||||
// locale ko_KR.euc-kr 로 설정
|
||||
setlocale(LC_CTYPE, 'ko_KR.euc-kr');
|
||||
|
||||
$g_conf_site_cd = $default['de_kcp_mid'];
|
||||
$g_conf_site_key = $default['de_kcp_site_key'];
|
||||
$g_conf_home_dir = G5_SHOP_PATH.'/kcp';
|
||||
$g_conf_key_dir = '';
|
||||
$g_conf_log_dir = '';
|
||||
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
|
||||
{
|
||||
$g_conf_key_dir = G5_SHOP_PATH.'/kcp/bin/pub.key';
|
||||
$g_conf_log_dir = G5_SHOP_PATH.'/kcp/log';
|
||||
}
|
||||
|
||||
if (preg_match("/^T000/", $g_conf_site_cd) || $default['de_card_test']) {
|
||||
$g_conf_gw_url = "testpaygw.kcp.co.kr";
|
||||
}
|
||||
else {
|
||||
$g_conf_gw_url = "paygw.kcp.co.kr";
|
||||
if (!preg_match("/^SR/", $g_conf_site_cd)) {
|
||||
alert("SR 로 시작하지 않는 KCP SITE CODE 는 지원하지 않습니다.");
|
||||
}
|
||||
}
|
||||
|
||||
include_once(G5_SHOP_PATH.'/kcp/pp_ax_hub_lib.php');
|
||||
|
||||
$req_tx = 'mod_escrow';
|
||||
$mod_type = 'STE1';
|
||||
$mod_desc = '에스크로 배송시작 등록';
|
||||
$cust_ip = getenv('REMOTE_ADDR');
|
||||
|
||||
$c_PayPlus = new C_PP_CLI;
|
||||
$c_PayPlus->mf_clear();
|
||||
|
||||
$tran_cd = "00200000";
|
||||
|
||||
// 에스크로 상태변경
|
||||
$tno_count = count($escrow_tno);
|
||||
for($i=0; $i<$tno_count; $i++) {
|
||||
if(!$escrow_tno[$i] || !$escrow_corp[$i] || !$escrow_numb[$i])
|
||||
continue;
|
||||
|
||||
$c_PayPlus->mf_set_modx_data( "tno", $escrow_tno[$i] );
|
||||
$c_PayPlus->mf_set_modx_data( "mod_type", $mod_type );
|
||||
$c_PayPlus->mf_set_modx_data( "mod_ip", $cust_ip );
|
||||
$c_PayPlus->mf_set_modx_data( "mod_desc", $mod_desc );
|
||||
|
||||
$c_PayPlus->mf_set_modx_data( "deli_numb", $escrow_numb[$i] );
|
||||
$c_PayPlus->mf_set_modx_data( "deli_corp", $escrow_corp[$i] );
|
||||
|
||||
$c_PayPlus->mf_do_tx( $trace_no, $g_conf_home_dir, $g_conf_site_cd, $g_conf_site_key, $tran_cd, "",
|
||||
$g_conf_gw_url, $g_conf_gw_port, "payplus_cli_slib", $ordr_idxx,
|
||||
$cust_ip, "3" , 0, 0, $g_conf_key_dir, $g_conf_log_dir); // 응답 전문 처리
|
||||
|
||||
$res_cd = $c_PayPlus->m_res_cd; // 결과 코드
|
||||
$res_msg = $c_PayPlus->m_res_msg; // 결과 메시지
|
||||
}
|
||||
|
||||
// locale 설정 초기화
|
||||
setlocale(LC_CTYPE, '');
|
||||
?>
|
||||
@ -130,17 +130,13 @@ include "./ordersms.inc.php";
|
||||
|
||||
|
||||
// 에스크로 배송처리
|
||||
if($_POST['od_pg'] == 'kcp' && $_POST['od_tno'] && $_POST['od_escrow'] == 1)
|
||||
if($_POST['od_tno'] && $_POST['od_escrow'] == 1)
|
||||
{
|
||||
$escrow_tno = array();
|
||||
$escrow_corp = array();
|
||||
$escrow_numb = array();
|
||||
$escrow_tno = $_POST['od_tno'];
|
||||
$escrow_corp = $_POST['od_delivery_company'];
|
||||
$escrow_numb = $_POST['od_invoice'];
|
||||
|
||||
$escrow_tno[0] = $_POST['od_tno'];
|
||||
$escrow_corp[0] = $_POST['od_delivery_company'];
|
||||
$escrow_numb[0] = $_POST['od_invoice'];
|
||||
|
||||
include_once('./orderescrow.inc.php');
|
||||
include(G5_SHOP_PATH.'/'.$od['od_pg'].'/escrow.register.php');
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -465,7 +465,7 @@ if(!sql_query(" select mb_id from {$g5['g5_shop_order_delete_table']} limit 1 ",
|
||||
<input type="checkbox" name="send_sms" value="1" id="od_send_sms" checked="checked">
|
||||
<label for="od_send_sms"><?php echo $change_status; ?>안내 SMS</label>
|
||||
<?php } ?>
|
||||
<?php if($od_status == '준비' && $default['de_pg_service'] == 'kcp') { ?>
|
||||
<?php if($od_status == '준비') { ?>
|
||||
<input type="checkbox" name="send_escrow" value="1" id="od_send_escrow">
|
||||
<label for="od_send_escrow">에스크로배송등록</label>
|
||||
<?php } ?>
|
||||
|
||||
@ -16,14 +16,6 @@ if($config['cf_sms_use'] == 'icode' && $_POST['send_sms'])
|
||||
$SMS->SMS_con($config['cf_icode_server_ip'], $config['cf_icode_id'], $config['cf_icode_pw'], $config['cf_icode_server_port']);
|
||||
}
|
||||
|
||||
$escrow_count = 0;
|
||||
if($_POST['send_escrow']) {
|
||||
$escrow_tno = array();
|
||||
$escrow_corp = array();
|
||||
$escrow_numb = array();
|
||||
$escrow_idx = 0;
|
||||
}
|
||||
|
||||
for ($i=0; $i<count($_POST['chk']); $i++)
|
||||
{
|
||||
// 실제 번호를 넘김
|
||||
@ -106,11 +98,11 @@ for ($i=0; $i<count($_POST['chk']); $i++)
|
||||
|
||||
// 에스크로 배송
|
||||
if($_POST['send_escrow'] && $od['od_tno'] && $od['od_escrow']) {
|
||||
$escrow_tno[$escrow_idx] = $od['od_tno'];
|
||||
$escrow_numb[$escrow_idx] = $invoice;
|
||||
$escrow_corp[$escrow_idx] = $delivery_company;
|
||||
$escrow_idx++;
|
||||
$escrow_count++;
|
||||
$escrow_tno = $od['od_tno'];
|
||||
$escrow_numb = $invoice;
|
||||
$escrow_corp = $delivery_company;
|
||||
|
||||
include(G5_SHOP_PATH.'/'.$od['od_pg'].'/escrow.register.php');
|
||||
}
|
||||
|
||||
break;
|
||||
@ -152,12 +144,6 @@ if($config['cf_sms_use'] == 'icode' && $_POST['send_sms'] && $sms_count)
|
||||
$SMS->Send();
|
||||
}
|
||||
|
||||
// 에스크로 배송
|
||||
if($_POST['send_escrow'] && $escrow_count)
|
||||
{
|
||||
include_once('./orderescrow.inc.php');
|
||||
}
|
||||
|
||||
$qstr = "sort1=$sort1&sort2=$sort2&sel_field=$sel_field&search=$search";
|
||||
$qstr .= "&od_status=$od_status";
|
||||
$qstr .= "&od_settle_case=$od_settle_case";
|
||||
|
||||
Reference in New Issue
Block a user