mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
Check the success db input.
This commit is contained in:
parent
2150fc26cf
commit
a495a1cecb
1 changed files with 16 additions and 0 deletions
|
|
@ -46,6 +46,10 @@ class documentController extends document
|
||||||
|
|
||||||
$point = 1;
|
$point = 1;
|
||||||
$output = $this->updateVotedCount($document_srl, $point);
|
$output = $this->updateVotedCount($document_srl, $point);
|
||||||
|
if(!$output->toBool())
|
||||||
|
{
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
$this->add('voted_count', $output->get('voted_count'));
|
$this->add('voted_count', $output->get('voted_count'));
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
@ -71,6 +75,10 @@ class documentController extends document
|
||||||
}
|
}
|
||||||
$point = 1;
|
$point = 1;
|
||||||
$output = $this->updateVotedCountCancel($document_srl, $oDocument, $point);
|
$output = $this->updateVotedCountCancel($document_srl, $oDocument, $point);
|
||||||
|
if(!$output->toBool())
|
||||||
|
{
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
|
|
||||||
$output = new Object();
|
$output = new Object();
|
||||||
$output->setMessage('success_voted_canceled');
|
$output->setMessage('success_voted_canceled');
|
||||||
|
|
@ -124,6 +132,10 @@ class documentController extends document
|
||||||
|
|
||||||
$point = -1;
|
$point = -1;
|
||||||
$output = $this->updateVotedCount($document_srl, $point);
|
$output = $this->updateVotedCount($document_srl, $point);
|
||||||
|
if(!$output->toBool())
|
||||||
|
{
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
$this->add('blamed_count', $output->get('blamed_count'));
|
$this->add('blamed_count', $output->get('blamed_count'));
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
@ -149,6 +161,10 @@ class documentController extends document
|
||||||
}
|
}
|
||||||
$point = -1;
|
$point = -1;
|
||||||
$output = $this->updateVotedCountCancel($document_srl, $oDocument, $point);
|
$output = $this->updateVotedCountCancel($document_srl, $oDocument, $point);
|
||||||
|
if(!$output->toBool())
|
||||||
|
{
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
|
|
||||||
$output = new Object();
|
$output = new Object();
|
||||||
$output->setMessage('success_blamed_canceled');
|
$output->setMessage('success_blamed_canceled');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue