1
This commit is contained in:
parent
a4ce44cd28
commit
a6e2650fb4
@ -47,9 +47,7 @@ class teamController{
|
||||
$team_uuid = $_REQUEST['team_uuid'];
|
||||
$r = $this->getRedis($team_uuid);
|
||||
|
||||
if(!$r){
|
||||
echo 'is null';
|
||||
}else{
|
||||
|
||||
$accountid = $_REQUEST['account_id'];
|
||||
$sessionid = $_REQUEST['session_id'];
|
||||
$user_db_str = $r->get(TEAMID_KEY . $team_uuid);
|
||||
@ -80,7 +78,7 @@ class teamController{
|
||||
'member_list' => $member_list,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function joinTeam()
|
||||
{
|
||||
@ -88,9 +86,7 @@ class teamController{
|
||||
|
||||
$r = $this->getRedis($team_uuid);
|
||||
|
||||
if (!$r){
|
||||
echo 'is null';
|
||||
}else {
|
||||
|
||||
$user_db_str = $r->get(TEAMID_KEY.$team_uuid);
|
||||
|
||||
if (empty($user_db_str)){
|
||||
@ -128,18 +124,17 @@ class teamController{
|
||||
));
|
||||
$r->set(TEAMID_KEY . $team_uuid, json_encode($user_db));
|
||||
$r->pexpire(TEAMID_KEY . $team_uuid, 1000 * 3600);
|
||||
}
|
||||
|
||||
echo json_encode(array(
|
||||
'errcode' => 0,
|
||||
'errmsg' => '',
|
||||
));
|
||||
gg ));
|
||||
}
|
||||
|
||||
public function kickoutMember()
|
||||
{
|
||||
$team_uuid = $_REQUEST['team_uuid'];
|
||||
$r = $this->getRedis($team_uuid);
|
||||
|
||||
if (!$r){
|
||||
echo 'is null';
|
||||
}else{
|
||||
|
Loading…
x
Reference in New Issue
Block a user