This commit is contained in:
aozhiwei 2021-12-10 19:25:24 +08:00
parent 01d4af797d
commit 18e134bb3d

View File

@ -12,13 +12,13 @@ class TeamController extends BaseAuthedController {
$nodeId = getReqVal('node_id', 1); $nodeId = getReqVal('node_id', 1);
$teamUuid = $nodeId . '_' . md5($this->_getAccountId()) . $this->_getNowTime(); $teamUuid = $nodeId . '_' . md5($this->_getAccountId()) . $this->_getNowTime();
$userDb = User::find($this->_getAccountId()); $userDb = $this->_getOrmUserInfo();
$userDto = User::info($userDb); $userDto = User::info($userDb);
$userDto['createtime'] = $userDb['createtime']; $userDto['createtime'] = $userDb['createtime'];
$teamDb = array( $teamDb = array(
'team_uuid' => $teamUuid, 'team_uuid' => $teamUuid,
'state' => 0, 'state' => 0,
'member_list' => array($userDb)); 'member_list' => array($userDto));
$r = $this->_getRedis($teamUuid); $r = $this->_getRedis($teamUuid);
$this->saveTeamDb($r, $teamUuid, $teamDb); $this->saveTeamDb($r, $teamUuid, $teamDb);