17207764 글/댓글 삭제시 포인트를 복구해주지 않도록 포인트가 -(마이너스)로 설정되었을 경우 동작하지 않도록 포인트 모듈 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4498 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-09-10 07:48:10 +00:00
parent 2fffb05a32
commit 82834abe9a

View file

@ -116,8 +116,8 @@
$comment_point = $config->module_point[$module_srl]['insert_comment'];
if(!isset($comment_point)) $comment_point = $config->insert_comment;
// 댓글 포인트가 있으면 처리
if(!$comment_point) return new Object();
// 댓글 포인트가 있으면 증감(+) 이면 차감 시도
if($comment_point>0) return new Object();
// 해당 글에 포함된 모든 댓글을 추출
$cp_args->document_srl = $document_srl;
@ -176,6 +176,9 @@
$point = $config->module_point[$module_srl]['insert_document'];
if(!isset($point)) $point = $config->insert_document;
// 포인트가 마이너스 즉 글을 작성시 마다 차감되는 경우라면 글 삭제시 증가시켜주지 않도록 수정
if($point < 0) return new Object();
$cur_point -= $point;
// 첨부파일 삭제에 대한 포인트 추가
@ -240,6 +243,9 @@
$point = $config->module_point[$module_srl]['insert_comment'];
if(!isset($point)) $point = $config->insert_comment;
// 포인트가 마이너스 즉 댓글을 작성시 마다 차감되는 경우라면 댓글 삭제시 증가시켜주지 않도록 수정
if($point < 0) return new Object();
// 포인트 증감
$cur_point -= $point;
$this->setPoint($member_srl,$cur_point);