포인트를 저장하는 부분에 적용여부를 확인하지 않는 문제 고침

This commit is contained in:
BJRambo 2018-12-03 21:21:54 +09:00
parent 4b6737800f
commit ad4c79ce6d

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