mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-11 23:01:41 +09:00
Merge pull request #1140 from sejin7940/proc_vote
추천,비추천시 증가된 추천수,비추천수 전달할 수 있게 수정
This commit is contained in:
commit
1f776fd9be
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