mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-26 13:52:24 +09:00
tab 맞춤
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4196 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
31651eb40b
commit
5baf002551
5 changed files with 37 additions and 37 deletions
|
|
@ -351,11 +351,11 @@
|
|||
return new Object();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 추천/비추천 시 포인트 적용
|
||||
**/
|
||||
|
||||
function triggerUpdateVotedCount(&$obj) {
|
||||
/**
|
||||
* @brief 추천/비추천 시 포인트 적용
|
||||
**/
|
||||
|
||||
function triggerUpdateVotedCount(&$obj) {
|
||||
$module_srl = $obj->module_srl;
|
||||
$member_srl = $obj->member_srl;
|
||||
if(!$module_srl || !$member_srl) return new Object();
|
||||
|
|
@ -365,26 +365,26 @@
|
|||
|
||||
$oPointModel = &getModel('point');
|
||||
$cur_point = $oPointModel->getPoint($member_srl, true);
|
||||
|
||||
if( $obj->point > 0 )
|
||||
{
|
||||
$point = $config->module_point[$module_srl]['voted'];
|
||||
if(!isset($point)) $point = $config->voted;
|
||||
}
|
||||
else
|
||||
{
|
||||
$point = $config->module_point[$module_srl]['blamed'];
|
||||
if(!isset($point)) $point = $config->blamed;
|
||||
}
|
||||
|
||||
if( $obj->point > 0 )
|
||||
{
|
||||
$point = $config->module_point[$module_srl]['voted'];
|
||||
if(!isset($point)) $point = $config->voted;
|
||||
}
|
||||
else
|
||||
{
|
||||
$point = $config->module_point[$module_srl]['blamed'];
|
||||
if(!isset($point)) $point = $config->blamed;
|
||||
}
|
||||
|
||||
if(!$point) return new Object();
|
||||
|
||||
// 포인트 증감
|
||||
$cur_point += $point;
|
||||
$this->setPoint($member_srl,$cur_point);
|
||||
|
||||
return new Object();
|
||||
}
|
||||
|
||||
return new Object();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 포인트 설정
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue