1
This commit is contained in:
parent
6bedb6709e
commit
6396a8ba50
@ -167,10 +167,17 @@ class TeamController extends BaseAuthedController {
|
||||
$this->_rspErr(1, 'The team has been disbanded');
|
||||
return;
|
||||
}
|
||||
if(! in_array($account_id,array_column($teamDb['member_list'],'account_id'))){
|
||||
$temp = array_map(function ($val){
|
||||
return $val['account_id'];
|
||||
},$teamDb['member_list']);
|
||||
if(! in_array($account_id,$temp)){
|
||||
$this->_rspErr(1, 'The team do not have users');
|
||||
return;
|
||||
}
|
||||
// if(! in_array($account_id,array_column($teamDb['member_list'],'account_id'))){
|
||||
// $this->_rspErr(1, 'The team do not have users');
|
||||
// return;
|
||||
// }
|
||||
if ($account_id == $this->_getAccountId()){
|
||||
$this->_rspErr(1, 'do not get myself out of line');
|
||||
return;
|
||||
@ -193,12 +200,6 @@ class TeamController extends BaseAuthedController {
|
||||
public function closeSlot()
|
||||
{
|
||||
$teamUuid = getReqVal('team_uuid', '');
|
||||
// $slot_id = getReqVal('slot_id', 0);
|
||||
// if (! in_array($slot_id,array(1,2,3,4)) ){
|
||||
// $this->_rspErr(1, 'slot_id param error');
|
||||
// return;
|
||||
// }
|
||||
|
||||
$r = $this->_getRedis($teamUuid);
|
||||
$teamDb = $this->readTeamDb($r, $teamUuid);
|
||||
if (empty($teamDb)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user