mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-20 19:02:14 +09:00
포인트 리셋기능 추가. 글/댓글/파일을 첨부한 사용자만 대상이고 그 외 회원은 일단 지워지고 나서 캐시파일 생성시 포인트 입력됨 (회원가입점수는 이때 적용)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3386 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4d6afe35fa
commit
4c2eabe9fa
19 changed files with 260 additions and 2 deletions
|
|
@ -300,6 +300,10 @@
|
|||
function setPoint($member_srl, $point) {
|
||||
if($point < 0) $point = 0;
|
||||
|
||||
// 설정 정보 가져오기
|
||||
$oModuleModel = &getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('point');
|
||||
|
||||
// 변수 설정
|
||||
$args->member_srl = $member_srl;
|
||||
$args->point = $point;
|
||||
|
|
@ -309,6 +313,7 @@
|
|||
if($oPointModel->isExistsPoint($member_srl)) {
|
||||
executeQuery("point.updatePoint", $args);
|
||||
} else {
|
||||
$args->point += (int)$config->signup_point;
|
||||
executeQuery("point.insertPoint", $args);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue