묻고답하기

1.7.4.2에서 updateVotedCount 부분이며 
아래 빨간 포인트 부분에서 1로 되어 있는걸 3으로 바꿨는데요 추천하면 1포인트만 올라가는데요 
추천 시 3포인트를 받을 수 있는 방법이 없을까요??
아래글들의 내용은 1.7.4.2에서는 없네요.. 

--------------------------------------------------

function updateVotedCount($document_srl, $point = 3)
{
if($point > 0) $failed_voted = 'failed_voted';
else $failed_voted = 'failed_blamed';
// Return fail if session already has information about votes
if($_SESSION['voted_document'][$document_srl])
{
return new Object(-1, $failed_voted);
}
// Get the original document
$oDocumentModel = getModel('document');
$oDocument = $oDocumentModel->getDocument($document_srl, false, false);
// Pass if the author's IP address is as same as visitor's.
if($oDocument->get('ipaddress') == $_SERVER['REMOTE_ADDR'])
{
$_SESSION['voted_document'][$document_srl] = true;
return new Object(-1, $failed_voted);
}

// Create a member model object
$oMemberModel = getModel('member');
$member_srl = $oMemberModel->getLoggedMemberSrl();

// Check if document's author is a member.
if($oDocument->get('member_srl'))
{
// Pass after registering a session if author's information is same as the currently logged-in user's.
if($member_srl && $member_srl == $oDocument->get('member_srl'))
{
$_SESSION['voted_document'][$document_srl] = true;
return new Object(-1, $failed_voted);
}
}

// Use member_srl for logged-in members and IP address for non-members.
$args = new stdClass;
if($member_srl)
{
$args->member_srl = $member_srl;
}
else
{
$args->ipaddress = $_SERVER['REMOTE_ADDR'];
}
$args->document_srl = $document_srl;
$output = executeQuery('document.getDocumentVotedLogInfo', $args);
// Pass after registering a session if log information has vote-up logs
if($output->data->count)
{
$_SESSION['voted_document'][$document_srl] = true;
return new Object(-1, $failed_voted);
}

// begin transaction
$oDB = DB::getInstance();
$oDB->begin();

// Update the voted count
if($point < 0)
{
$args->blamed_count = $oDocument->get('blamed_count') + $point;
$output = executeQuery('document.updateBlamedCount', $args);
}
else
{
$args->voted_count = $oDocument->get('voted_count') + $point;
$output = executeQuery('document.updateVotedCount', $args);
}
if(!$output->toBool()) return $output;
// Leave logs
$args->point = $point;
$output = executeQuery('document.insertDocumentVotedLog', $args);
if(!$output->toBool()) return $output;

$obj = new stdClass;
$obj->member_srl = $oDocument->get('member_srl');
$obj->module_srl = $oDocument->get('module_srl');
$obj->document_srl = $oDocument->get('document_srl');
$obj->update_target = ($point < 0) ? 'blamed_count' : 'voted_count';
$obj->point = $point;
$obj->before_point = ($point < 0) ? $oDocument->get('blamed_count') : $oDocument->get('voted_count');
$obj->after_point = ($point < 0) ? $args->blamed_count : $args->voted_count;
$trigger_output = ModuleHandler::triggerCall('document.updateVotedCount', 'after', $obj);
if(!$trigger_output->toBool())
{
$oDB->rollback();
return $trigger_output;
}

$oDB->commit();

$oCacheHandler = CacheHandler::getInstance('object');
if($oCacheHandler->isSupport())
{
//remove document item from cache
$cache_key = 'document_item:'. getNumberingPath($document_srl) . $document_srl;
$oCacheHandler->delete($cache_key);
}

// Leave in the session information
$_SESSION['voted_document'][$document_srl] = true;

// Return result
if($point > 0)
{
return new Object(0, 'success_voted');
}
else
{
return new Object(0, 'success_blamed');
}
}
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
newsoft 첨부파일 퍼미션  
선수 제로보드 조회수 프로그램 접근법에 대해 알고 싶습니다.  
설승일 1.0.4 버전에서 1.8.5버전으로 업그레이드  
JerryGoldman 첨부이미지가 고화질일 경우 섬네일 출력문제 [1] file 2015.07.10 by DoorWeb
cj**** 1.8.5 업데이트 이후 파일 첨부 오류 해결 방법 좀 알려 주세요. [2] file 2015.07.10 by cj****
아린아빠 xe내에서 ftp 설정문제 file  
newsoft 댓글 달면 이상 증상  
hosy debugPrint query찍을때 이상 [2] 2015.07.10 by 하늘희
아이디노 글작성후 등록은되는데 페이지가 그대로입니다.(이거때매 큰일ㅠ) file  
오돍이 안녕하세요. 일본쪽에서 홈페이지 접속이 안된다고 하네요 ㅠㅠ [4] 2015.07.10 by 오돍이
서리diu 최근 게시물 위젯에서 다수 카테고리 선택 후 그 중 하나만 무작위로 골라 출력하고 싶습니다.  
newsoft 게시물 리스트에 첨부파일 다운로드 링크 [1] 2015.07.10 by newsoft
JerryGoldman 로그인 필요 창 스타일을 변경해주고싶습니다. [1] file 2015.07.10 by YJSoft
아형여옹 쉬운 설치 진행하면 화면 백지 증상  
아형여옹 게시물 업로드 표시 [2] 2015.07.10 by 아형여옹
JerryGoldman 검색결과 페이지 상단 검색창 및 여백 제거 file  
JerryGoldman 번호/제목/글쓴이/날짜 이부분 스타일 변경 file  
JerryGoldman 번호/제목/글쓴이/날짜 이부분 문구변경  
유주스토어2 설치형 채팅방 레이어로 띄우는 방법?! [6] 2015.07.10 by 다미아빠
유샤인 데이터베이스가 자주 깨어 지면서 이런 에러가 뜹니다. 이거 어떻게 치유하나요? file