가상계좌 입금 통보 때 상태가 주문인 것만 반영되도록 수정
This commit is contained in:
@ -144,6 +144,8 @@ if(!$default['de_card_test']) {
|
|||||||
$sql = " select pp_id, od_id from {$g5['g5_shop_personalpay_table']} where pp_id = '$order_no' and pp_tno = '$tno' ";
|
$sql = " select pp_id, od_id from {$g5['g5_shop_personalpay_table']} where pp_id = '$order_no' and pp_tno = '$tno' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
|
|
||||||
|
$result = false;
|
||||||
|
|
||||||
if($row['pp_id']) {
|
if($row['pp_id']) {
|
||||||
// 개인결제 UPDATE
|
// 개인결제 UPDATE
|
||||||
$sql = " update {$g5['g5_shop_personalpay_table']}
|
$sql = " update {$g5['g5_shop_personalpay_table']}
|
||||||
@ -180,22 +182,31 @@ if(!$default['de_card_test']) {
|
|||||||
else
|
else
|
||||||
$od_id = $order_no;
|
$od_id = $order_no;
|
||||||
|
|
||||||
// 미수금 정보 업데이트
|
// 주문정보 체크
|
||||||
$info = get_order_info($od_id);
|
$sql = " select count(od_id) as cnt
|
||||||
|
from {$g5['g5_shop_order_table']}
|
||||||
|
where od_id = '$od_id'
|
||||||
|
and od_status = '주문' ";
|
||||||
|
$row = sql_fetch($sql);
|
||||||
|
|
||||||
$sql = " update {$g5['g5_shop_order_table']}
|
if($row['cnt'] == 1) {
|
||||||
set od_misu = '{$info['od_misu']}' ";
|
// 미수금 정보 업데이트
|
||||||
if($info['od_misu'] == 0)
|
$info = get_order_info($od_id);
|
||||||
$sql .= " , od_status = '입금' ";
|
|
||||||
$sql .= " where od_id = '$od_id' ";
|
|
||||||
sql_query($sql, FALSE);
|
|
||||||
|
|
||||||
// 장바구니 상태변경
|
$sql = " update {$g5['g5_shop_order_table']}
|
||||||
if($info['od_misu'] == 0) {
|
set od_misu = '{$info['od_misu']}' ";
|
||||||
$sql = " update {$g5['g5_shop_cart_table']}
|
if($info['od_misu'] == 0)
|
||||||
set ct_status = '입금'
|
$sql .= " , od_status = '입금' ";
|
||||||
where od_id = '$od_id' ";
|
$sql .= " where od_id = '$od_id' ";
|
||||||
sql_query($sql, FALSE);
|
sql_query($sql, FALSE);
|
||||||
|
|
||||||
|
// 장바구니 상태변경
|
||||||
|
if($info['od_misu'] == 0) {
|
||||||
|
$sql = " update {$g5['g5_shop_cart_table']}
|
||||||
|
set ct_status = '입금'
|
||||||
|
where od_id = '$od_id' ";
|
||||||
|
sql_query($sql, FALSE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -78,6 +78,8 @@ if ( $LGD_HASHDATA2 == $LGD_HASHDATA ) { //해쉬값 검증이 성공이면
|
|||||||
$sql = " select pp_id, od_id from {$g5['g5_shop_personalpay_table']} where pp_id = '$LGD_OID' and pp_tno = '$LGD_TID' ";
|
$sql = " select pp_id, od_id from {$g5['g5_shop_personalpay_table']} where pp_id = '$LGD_OID' and pp_tno = '$LGD_TID' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
|
|
||||||
|
$result = false;
|
||||||
|
|
||||||
if($row['pp_id']) {
|
if($row['pp_id']) {
|
||||||
// 개인결제 UPDATE
|
// 개인결제 UPDATE
|
||||||
$sql = " update {$g5['g5_shop_personalpay_table']}
|
$sql = " update {$g5['g5_shop_personalpay_table']}
|
||||||
@ -115,22 +117,31 @@ if ( $LGD_HASHDATA2 == $LGD_HASHDATA ) { //해쉬값 검증이 성공이면
|
|||||||
else
|
else
|
||||||
$od_id = $LGD_OID;
|
$od_id = $LGD_OID;
|
||||||
|
|
||||||
// 미수금 정보 업데이트
|
// 주문정보 체크
|
||||||
$info = get_order_info($od_id);
|
$sql = " select count(od_id) as cnt
|
||||||
|
from {$g5['g5_shop_order_table']}
|
||||||
|
where od_id = '$od_id'
|
||||||
|
and od_status = '주문' ";
|
||||||
|
$row = sql_fetch($sql);
|
||||||
|
|
||||||
$sql = " update {$g5['g5_shop_order_table']}
|
if($row['cnt'] == 1) {
|
||||||
set od_misu = '{$info['od_misu']}' ";
|
// 미수금 정보 업데이트
|
||||||
if($info['od_misu'] == 0)
|
$info = get_order_info($od_id);
|
||||||
$sql .= " , od_status = '입금' ";
|
|
||||||
$sql .= " where od_id = '$od_id' ";
|
|
||||||
$result = sql_query($sql, FALSE);
|
|
||||||
|
|
||||||
// 장바구니 상태변경
|
$sql = " update {$g5['g5_shop_order_table']}
|
||||||
if($info['od_misu'] == 0) {
|
set od_misu = '{$info['od_misu']}' ";
|
||||||
$sql = " update {$g5['g5_shop_cart_table']}
|
if($info['od_misu'] == 0)
|
||||||
set ct_status = '입금'
|
$sql .= " , od_status = '입금' ";
|
||||||
where od_id = '$od_id' ";
|
$sql .= " where od_id = '$od_id' ";
|
||||||
sql_query($sql, FALSE);
|
$result = sql_query($sql, FALSE);
|
||||||
|
|
||||||
|
// 장바구니 상태변경
|
||||||
|
if($info['od_misu'] == 0) {
|
||||||
|
$sql = " update {$g5['g5_shop_cart_table']}
|
||||||
|
set ct_status = '입금'
|
||||||
|
where od_id = '$od_id' ";
|
||||||
|
sql_query($sql, FALSE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user