diff --git a/lib/shop.lib.php b/lib/shop.lib.php index f63adb941..0814a59b8 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -1917,7 +1917,7 @@ function check_itemuse_write($close=true) // 구매 본인인증 체크 -function shop_member_cert_check($id, $type='list') +function shop_member_cert_check($id, $type) { global $g5, $member; @@ -1961,7 +1961,7 @@ function shop_member_cert_check($id, $type='list') } break; - default: + case 'list': $sql = " select * from {$g5['g5_shop_category_table']} where ca_id = '$id' "; $ca = sql_fetch($sql); @@ -1981,6 +1981,8 @@ function shop_member_cert_check($id, $type='list') $msg = '본인확인으로 성인인증된 회원만 이용할 수 있습니다.'; } + break; + default: break; } diff --git a/mobile/shop/list.php b/mobile/shop/list.php index 238254103..e16617b4f 100644 --- a/mobile/shop/list.php +++ b/mobile/shop/list.php @@ -7,13 +7,13 @@ $sql = " select * and ca_use = '1' "; $ca = sql_fetch($sql); if (!$ca['ca_id']) - alert('등록된 분류가 없습니다.'); + alert('등록된 분류가 없습니다.', G5_SHOP_URL); // 본인인증, 성인인증체크 if(!$is_admin) { - $msg = shop_member_cert_check($ca_id); + $msg = shop_member_cert_check($ca_id, 'list'); if($msg) - alert($msg); + alert($msg, G5_SHOP_URL); } $g5['title'] = $ca['ca_name'].' 상품리스트'; @@ -22,9 +22,6 @@ include_once(G5_MSHOP_PATH.'/_head.php'); // 스킨을 지정했다면 지정한 스킨을 사용함 (스킨의 다양화) //if ($skin) $ca[ca_skin] = $skin; - -if ($is_admin) - echo '
분류 관리
'; ?>