This commit is contained in:
aozhiwei 2022-05-18 17:40:08 +08:00
parent 03838990b9
commit 1ef6a9a724
2 changed files with 11 additions and 1 deletions

View File

@ -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(

View File

@ -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);