mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 13:02:15 +09:00
* pr/1694: fix #1662 임시 저장글을 삭제할 때에는 포인트 증감 처리를 하지 않도록 수정
This commit is contained in:
commit
e0cf434908
1 changed files with 31 additions and 26 deletions
|
|
@ -186,6 +186,10 @@ class pointController extends point
|
|||
* @brief A trigger to give points for deleting the post
|
||||
*/
|
||||
function triggerDeleteDocument(&$obj)
|
||||
{
|
||||
$oDocumentModel = getModel('document');
|
||||
|
||||
if($obj->status != $oDocumentModel->getConfigStatus('temp'))
|
||||
{
|
||||
$module_srl = $obj->module_srl;
|
||||
$member_srl = $obj->member_srl;
|
||||
|
|
@ -213,6 +217,7 @@ class pointController extends point
|
|||
if($obj->uploaded_count) $cur_point -= $point * $obj->uploaded_count;
|
||||
// Increase the point
|
||||
$this->setPoint($member_srl,$cur_point);
|
||||
}
|
||||
|
||||
return new Object();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue