mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
포인트 지급 방식 변경, 댓글 수정 허용 관련 문제점 개선
This commit is contained in:
parent
ec2bbca41e
commit
a56954684a
7 changed files with 66 additions and 13 deletions
|
|
@ -234,10 +234,18 @@ class pointController extends point
|
|||
$document_srl = $obj->document_srl;
|
||||
$oDocumentModel = getModel('document');
|
||||
$oDocument = $oDocumentModel->getDocument($document_srl);
|
||||
if(!$oDocument->isExists() || abs($oDocument->get('member_srl'))==abs($member_srl)) return new Object();
|
||||
// Get the point module information
|
||||
$oModuleModel = getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('point');
|
||||
if($config->no_point_date > 0)
|
||||
{
|
||||
if($oDocument->get('regdate') < date('YmdHis', strtotime('-'.$config->no_point_date.' day')))
|
||||
{
|
||||
return new Object();
|
||||
}
|
||||
}
|
||||
if(!$oDocument->isExists() || abs($oDocument->get('member_srl'))==abs($member_srl)) return new Object();
|
||||
|
||||
$module_config = $oModuleModel->getModulePartConfig('point', $module_srl);
|
||||
// Get the points of the member
|
||||
$oPointModel = getModel('point');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue