1
This commit is contained in:
parent
a3a75e60a1
commit
630fda271e
@ -252,6 +252,7 @@ class TeamController extends BaseAuthedController {
|
|||||||
public function openSlot()
|
public function openSlot()
|
||||||
{
|
{
|
||||||
$teamUuid = getReqVal('team_uuid', '');
|
$teamUuid = getReqVal('team_uuid', '');
|
||||||
|
$slotNum = getReqVal('slot_num', 1);
|
||||||
$r = $this->_getRedis($teamUuid);
|
$r = $this->_getRedis($teamUuid);
|
||||||
$teamDb = $this->readTeamDb($r, $teamUuid);
|
$teamDb = $this->readTeamDb($r, $teamUuid);
|
||||||
if (empty($teamDb)) {
|
if (empty($teamDb)) {
|
||||||
@ -264,11 +265,11 @@ class TeamController extends BaseAuthedController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($teamDb['slot_num'] >= 4){
|
// if ($teamDb['slot_num'] >= 4){
|
||||||
$this->_rspErr(1, 'Maximum size of team');
|
// $this->_rspErr(1, 'Maximum size of team');
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
$teamDb['slot_num']+=1;
|
$teamDb['slot_num'] = $slotNum;
|
||||||
$this->saveTeamDb($r, $teamUuid, $teamDb);
|
$this->saveTeamDb($r, $teamUuid, $teamDb);
|
||||||
$this->_rspOk();
|
$this->_rspOk();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user