mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 02:01:40 +09:00
포인트 모듈에 회원가입시 포인트를 줄 수 있도록 기능 개선
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2718 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
faf518676f
commit
6e3c2b4fb4
10 changed files with 58 additions and 2 deletions
|
|
@ -159,6 +159,21 @@
|
|||
$cur_point -= $point;
|
||||
$oPointController = &getController('point');
|
||||
$oPointController->setPoint($target_member_srl,$cur_point);
|
||||
|
||||
// 회원 가입일 경우
|
||||
} elseif(strpos($config->signup_act,$this->act)!==false) {
|
||||
// 가입이 제대로 되었는지 체크
|
||||
if(!$this->toBool()||!$this->get('member_srl')) return;
|
||||
$member_srl = $this->get('member_srl');
|
||||
|
||||
// 포인트를 구해옴
|
||||
$point = $config->module_point[$module_srl]['signup'];
|
||||
if($point == null) $point = $config->signup;
|
||||
|
||||
// 포인트 증감
|
||||
$cur_point += $point;
|
||||
$oPointController = &getController('point');
|
||||
$oPointController->setPoint($member_srl,$cur_point);
|
||||
}
|
||||
|
||||
// 파일다운로드는 before_module_proc 일때 체크
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue