From 82e85d1d1be3c9eb7727c42556c35750ca90d367 Mon Sep 17 00:00:00 2001 From: zero Date: Tue, 19 May 2009 04:06:17 +0000 Subject: [PATCH] =?UTF-8?q?=EC=A1=B0=ED=9A=8C=ED=8F=AC=EC=9D=B8=ED=8A=B8?= =?UTF-8?q?=20=EC=A0=81=EC=9A=A9=20=EA=B4=80=EB=A0=A8=EB=90=9C=20=EB=B6=80?= =?UTF-8?q?=EB=B6=84=EC=9D=98=20=ED=8D=BC=ED=8F=AC=EB=A8=BC=EC=8A=A4=20?= =?UTF-8?q?=ED=96=A5=EC=83=81=EC=9D=84=20=EC=9C=84=ED=95=9C=20=EC=BD=94?= =?UTF-8?q?=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 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6334 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/point/point.controller.php | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/modules/point/point.controller.php b/modules/point/point.controller.php index 0b43e06ac..4455d59e2 100644 --- a/modules/point/point.controller.php +++ b/modules/point/point.controller.php @@ -439,6 +439,17 @@ // 원글을 적은 이와 동일하면 조회수 올리지 않고 pass if($target_member_srl == $member_srl) return new Object(); + // 모듈별 point 정보 가져옴 + $config = $oModuleModel->getModuleConfig('point'); + $module_config = $oModuleModel->getModulePartConfig('point', $obj->get('module_srl')); + + // 조회 포인트를 구해옴 + $point = $module_config['read_document']; + if(!isset($point)) $point = $config->read_document; + + // 조회 포인트가 없으면 pass + if(!$point) return new Object(); + // 회원일 경우 읽은 적이 있으면 그냥 pass 하고 그렇지 않으면 현재 포인트 구함 if($member_srl) { $args->member_srl = $member_srl; @@ -453,14 +464,6 @@ // 포인트 모듈 기본 설정 가져옴 $config = $oModuleModel->getModuleConfig('point'); - // 모듈별 point 정보 가져옴 - $config = $oModuleModel->getModuleConfig('point'); - $module_config = $oModuleModel->getModulePartConfig('point', $obj->get('module_srl')); - - // 조회 포인트를 구해옴 - $point = $module_config['read_document']; - if(!isset($point)) $point = $config->read_document; - // 조회 포인트가 -(마이너스)일때 현재 포인트와 비교 if($config->disable_read_document == 'Y' && $point < 0 && abs($point)>$cur_point) { $obj->add('content', sprintf(Context::getLang('msg_disallow_by_point'), abs($point), $cur_point));