모바일 주문데이터 저장 때 동일 주문번호에 대한 예외처리 추가

This commit is contained in:
chicpro
2015-08-13 15:46:13 +09:00
parent 69fe3ce384
commit 6aa6c5eb48

View File

@ -18,6 +18,12 @@ $_POST['sw_direct'] = get_session('ss_direct');
$dt_data = serialize($_POST);
// 동일한 주문번호가 있는지 체크
$sql = " select count(*) as cnt from {$g5['g5_shop_order_data_table']} where od_id = '$od_id' ";
$row = sql_fetch($sql);
if($row['cnt'])
sql_query(" delete from {$g5['g5_shop_order_data_table']} where od_id = '$od_id' ");
$sql = " insert into {$g5['g5_shop_order_data_table']}
set od_id = '$od_id',
dt_pg = '{$default['de_pg_service']}',