mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-11 23:01:41 +09:00
추천,비추천시 증가된 추천수,비추천수 전달할 수 있게 수정
사실 버그는 아닌데, procDocumentVoteUp 함수나 procDocumentVoteDown 함수를 보다 더 잘 활용하기 위해 추천,비추천시 증가된 추천수,비추천수 전달할 수 있게 수정
This commit is contained in:
parent
0b3eaa410b
commit
701318311b
1 changed files with 6 additions and 2 deletions
|
|
@ -39,7 +39,9 @@ class documentController extends document
|
|||
if($document_config->use_vote_up=='N') return new Object(-1, 'msg_invalid_request');
|
||||
|
||||
$point = 1;
|
||||
return $this->updateVotedCount($document_srl, $point);
|
||||
$output = $this->updateVotedCount($document_srl, $point);
|
||||
$this->add('voted_count', $output->get('voted_count'));
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -82,7 +84,9 @@ class documentController extends document
|
|||
if($document_config->use_vote_down=='N') return new Object(-1, 'msg_invalid_request');
|
||||
|
||||
$point = -1;
|
||||
return $this->updateVotedCount($document_srl, $point);
|
||||
$output = $this->updateVotedCount($document_srl, $point);
|
||||
$this->add('blamed_count', $output->get('blamed_count'));
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue