1
This commit is contained in:
parent
a492457bc6
commit
d19851ce23
@ -43,6 +43,7 @@ class teamController{
|
||||
|
||||
public function teamInfo()
|
||||
{
|
||||
$team_uuid = $_REQUEST['team_uuid'];
|
||||
$r = $this->getRedis($team_uuid);
|
||||
|
||||
if(!$r){
|
||||
@ -50,7 +51,6 @@ class teamController{
|
||||
}else{
|
||||
$accountid = $_REQUEST['account_id'];
|
||||
$sessionid = $_REQUEST['session_id'];
|
||||
$team_uuid = $_REQUEST['team_uuid'];
|
||||
$user_db_str = $r->get(TEAMID_KEY . $team_uuid);
|
||||
if (empty($user_db_str)) {
|
||||
phpcommon\sendError(ERR_USER_BASE + 1,'session失效1');
|
||||
@ -235,6 +235,7 @@ class teamController{
|
||||
echo 'is null';
|
||||
}else{
|
||||
$user_db_str = $r->get(TEAMID_KEY . $team_uuid);
|
||||
|
||||
if (empty($user_db_str)){
|
||||
phpcommon\sendError(ERR_USER_BASE + 1,'session失效1');
|
||||
return;
|
||||
@ -244,6 +245,14 @@ class teamController{
|
||||
phpcommon\sendError(ERR_USER_BASE + 1,'session失效2');
|
||||
return;
|
||||
}
|
||||
foreach ($user_db['member_list'] as $member) {
|
||||
if ($member['account_id'] == $_REQUEST['account_id']){
|
||||
if($member['idx'] != 1){
|
||||
phpcommon\sendError(ERR_USER_BASE + 4,'你不是队长');
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
$user_db['auto_fill'] = $_REQUEST['auto_fill'];
|
||||
$r->set(TEAMID_KEY . $team_uuid, json_encode($user_db));
|
||||
$r->pexpire(TEAMID_KEY . $team_uuid, 1000 * 3600);
|
||||
|
Loading…
x
Reference in New Issue
Block a user