mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
#410. trigger로 추천, 비추천에 따른 포인트 변동 기능 지원
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4194 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
75ff83f052
commit
296c181762
14 changed files with 100 additions and 4 deletions
|
|
@ -415,14 +415,22 @@
|
|||
$args->voted_count = $oDocument->get('voted_count') + $point;
|
||||
$output = executeQuery('document.updateVotedCount', $args);
|
||||
}
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
// 로그 남기기
|
||||
$args->point = $point;
|
||||
$output = executeQuery('document.insertDocumentVotedLog', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
// 세션 정보에 남김
|
||||
$_SESSION['voted_document'][$document_srl] = true;
|
||||
|
||||
$obj->member_srl = $oDocument->get('member_srl');
|
||||
$obj->module_srl = $oDocument->get('module_srl');
|
||||
$obj->point = $point;
|
||||
$output = ModuleHandler::triggerCall('document.updateVotedCount', 'after', $obj);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
// 결과 리턴
|
||||
if($point > 0)
|
||||
return new Object(0, 'success_voted');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue