add zid
This commit is contained in:
parent
03838990b9
commit
1ef6a9a724
@ -51,6 +51,13 @@ class BaseController {
|
||||
return phpcommon\getMondaySeconds($this->_getNowTime(), $this->timeZone);
|
||||
}
|
||||
|
||||
public function _getZid()
|
||||
{
|
||||
$net = getReqVal('_net', '');
|
||||
$zid = $net && count($net) > 3 ? $net[2] : 3;
|
||||
return $zid < 1 || $zid > 4 ? 3 : $zid;
|
||||
}
|
||||
|
||||
public function _rspErr($errcode, $errmsg)
|
||||
{
|
||||
echo json_encode(array(
|
||||
|
@ -10,7 +10,10 @@ class TeamController extends BaseAuthedController {
|
||||
public function createTeam()
|
||||
{
|
||||
$nodeId = getReqVal('node_id', 1);
|
||||
$teamUuid = $nodeId . '_' . md5($this->_getAccountId() . $this->_getNowTime());
|
||||
$zid = myself()->_getZid();
|
||||
$teamUuid = $nodeId . '_' .
|
||||
$zid . '_' .
|
||||
md5($this->_getAccountId() . $this->_getNowTime());
|
||||
|
||||
$userDb = $this->_getOrmUserInfo();
|
||||
$userDto = User::info($userDb);
|
||||
|
Loading…
x
Reference in New Issue
Block a user