#424 가입포인트 중복 지급하지 않도록 코드 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3875 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-02-28 12:43:48 +00:00
parent 08bb4f0258
commit 30e8773331

View file

@ -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);
}