mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 04:39:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@943 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
96d1ad3f46
commit
9d15c26bb4
7 changed files with 72 additions and 9 deletions
|
|
@ -287,14 +287,25 @@
|
|||
$logged_info = Context::get('logged_info');
|
||||
|
||||
// 변수 정리
|
||||
$args->friend_group_srl = trim(Context::get('friend_group_srl'));
|
||||
$args->member_srl = $logged_info->member_srl;
|
||||
$args->title = Context::get('title');
|
||||
if(!$args->title) return new Object(-1, 'msg_invalid_request');
|
||||
|
||||
$output = executeQuery('member.addFriendGroup', $args);
|
||||
// friend_group_srl이 있으면 수정
|
||||
if($args->friend_group_srl) {
|
||||
$output = executeQuery('member.renameFriendGroup', $args);
|
||||
$msg_code = 'success_updated';
|
||||
|
||||
// 아니면 입력
|
||||
} else {
|
||||
$output = executeQuery('member.addFriendGroup', $args);
|
||||
$msg_code = 'success_registed';
|
||||
}
|
||||
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
$this->setMessage('success_registed');
|
||||
$this->setMessage($msg_code);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue