mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 23:03:25 +09:00
#424 가입포인트 중복 지급하지 않도록 코드 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3875 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
08bb4f0258
commit
30e8773331
1 changed files with 3 additions and 3 deletions
|
|
@ -38,7 +38,7 @@
|
|||
|
||||
// 포인트 증감
|
||||
$cur_point += $point;
|
||||
$this->setPoint($member_srl,$cur_point);
|
||||
$this->setPoint($member_srl,$cur_point, 'signup');
|
||||
|
||||
return new Object();
|
||||
}
|
||||
|
|
@ -354,7 +354,7 @@
|
|||
/**
|
||||
* @brief 포인트 설정
|
||||
**/
|
||||
function setPoint($member_srl, $point) {
|
||||
function setPoint($member_srl, $point, $mode = null) {
|
||||
if($point < 0) $point = 0;
|
||||
|
||||
// 설정 정보 가져오기
|
||||
|
|
@ -376,7 +376,7 @@
|
|||
if($oPointModel->isExistsPoint($member_srl)) {
|
||||
executeQuery("point.updatePoint", $args);
|
||||
} else {
|
||||
$args->point += (int)$config->signup_point;
|
||||
if($mode != 'signup') $args->point += (int)$config->signup_point;
|
||||
executeQuery("point.insertPoint", $args);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue