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