mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 14:22:54 +09:00
Merge #939 댓글에 대한 추천, 비추천시 증감할 포인트 별도 설정 기능 및 포인트 변동 구현 by sejin7940
* pr/939: Update point.admin.controller.php Update module_config.html Update point.view.php Update point.admin.controller.php Update point_module_config.html Update point.controller.php Update config.html Update point.class.php Conflicts: modules/point/point.admin.controller.php modules/point/point.class.php
This commit is contained in:
commit
a215c41503
7 changed files with 88 additions and 10 deletions
|
|
@ -459,15 +459,32 @@ class pointController extends point
|
|||
|
||||
if( $obj->point > 0 )
|
||||
{
|
||||
$point = $module_config['voted'];
|
||||
if(strlen($point) == 0 && !is_int($point)) $point = $config->voted;
|
||||
if($obj->comment_srl)
|
||||
{
|
||||
$point = $module_config['voted_comment'];
|
||||
if(strlen($point) == 0 && !is_int($point)) $point = $config->voted_comment;
|
||||
}
|
||||
else
|
||||
{
|
||||
$point = $module_config['voted'];
|
||||
if(strlen($point) == 0 && !is_int($point)) $point = $config->voted;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$point = $module_config['blamed'];
|
||||
if(strlen($point) == 0 && !is_int($point)) $point = $config->blamed;
|
||||
if($obj->comment_srl)
|
||||
{
|
||||
$point = $module_config['blamed_comment'];
|
||||
if(strlen($point) == 0 && !is_int($point)) $point = $config->blamed_comment;
|
||||
}
|
||||
else
|
||||
{
|
||||
$point = $module_config['blamed'];
|
||||
if(strlen($point) == 0 && !is_int($point)) $point = $config->blamed;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(!$point) return new Object();
|
||||
// Increase the point
|
||||
$cur_point += $point;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue