mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
포인트 그룹 연동 설정시 최대 레벨보다 높게 설정할 수 있는 문제 수정
+혼동 방지를 위해 입력칸 옆에 레벨 표시 추가
This commit is contained in:
parent
2aade0342b
commit
d0b64fde1e
2 changed files with 14 additions and 0 deletions
|
|
@ -60,6 +60,19 @@ class pointAdminController extends point
|
|||
if($group->is_admin == 'Y' || $group->is_default == 'Y') continue;
|
||||
|
||||
$group_srl = $group->group_srl;
|
||||
|
||||
//if group level is higher than max level, change to max level
|
||||
if($args->{'point_group_'.$group_srl} > $args->max_level)
|
||||
{
|
||||
$args->{'point_group_'.$group_srl} = $args->max_level;
|
||||
}
|
||||
|
||||
//if group level is lower than 1, change to 1
|
||||
if($args->{'point_group_'.$group_srl} < 1)
|
||||
{
|
||||
$args->{'point_group_'.$group_srl} = 1;
|
||||
}
|
||||
|
||||
if($args->{'point_group_'.$group_srl})
|
||||
{
|
||||
$config->point_group[$group_srl] = $args->{'point_group_'.$group_srl};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue