트리거를 사용하여 포인트를 회수할 수 있도록 개선.

This commit is contained in:
qw5414 2016-01-22 19:41:51 +09:00
parent 4a0efef53e
commit d641e2cc0e
3 changed files with 63 additions and 17 deletions

View file

@ -492,7 +492,18 @@ class pointController extends point
if(!$point) return new Object();
// Increase the point
$cur_point += $point;
if($obj->cancel > 0)
{
$cur_point -= $point;
}
else if($obj->cancel == null)
{
$cur_point += $point;
}
else
{
$cur_point += $point;
}
$this->setPoint($member_srl,$cur_point);
return new Object();