mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-22 03:42:18 +09:00
트리거를 사용하여 포인트를 회수할 수 있도록 개선.
This commit is contained in:
parent
4a0efef53e
commit
d641e2cc0e
3 changed files with 63 additions and 17 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue