Merge pull request #1116 from bjrambo/pr/pointOutput

포인트를 저장하는 부분에 적용여부를 확인하지 않는 문제 고침
This commit is contained in:
BJRambo 2018-12-03 21:40:12 +09:00 committed by GitHub
commit 98f495c588
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -642,8 +642,14 @@ class pointController extends point
// If there are points, update, if no, insert
$oPointModel = getModel('point');
if($oPointModel->isExistsPoint($member_srl)) executeQuery("point.updatePoint", $args);
else executeQuery("point.insertPoint", $args);
if ($oPointModel->isExistsPoint($member_srl))
{
$output = executeQuery("point.updatePoint", $args);
}
else
{
$output = executeQuery("point.insertPoint", $args);
}
// Get a new level
$level = $oPointModel->getLevel($point, $config->level_step);