mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
#401 게시글 조회시 포인트 적용 루틴 변경하여 정상 동작 확인
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3685 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
92253dcd1a
commit
ef9060dcf8
3 changed files with 16 additions and 29 deletions
|
|
@ -331,6 +331,18 @@
|
|||
// 포인트를 구해옴
|
||||
$point = $config->module_point[$obj->get('module_srl')]['read_document'];
|
||||
if(!isset($point)) $point = $config->read_document;
|
||||
|
||||
// 조회 포인트가 없으면 패스
|
||||
if(!$point) return new Object();
|
||||
|
||||
// 읽은 기록이 있는지 확인
|
||||
$args->member_srl = $member_srl;
|
||||
$args->document_srl = $obj->document_srl;
|
||||
$output = executeQuery('document.getDocumentReadedLogInfo', $args);
|
||||
if($output->data->count) return new Object();
|
||||
|
||||
// 읽은 기록이 없으면 기록 남김
|
||||
$output = executeQuery('document.insertDocumentReadedLog', $args);
|
||||
|
||||
// 포인트 증감
|
||||
$cur_point += $point;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue