Merge pull request #1140 from sejin7940/proc_vote

추천,비추천시 증가된 추천수,비추천수 전달할 수 있게 수정
This commit is contained in:
bnu 2015-03-23 13:56:40 +09:00
commit 1f776fd9be

View file

@ -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;
}
/**