|
|
@ -107,7 +107,9 @@ class AuthApiController extends BaseAuthApiController |
|
|
|
$dataAgentInsert = [ |
|
|
|
$dataAgentInsert = [ |
|
|
|
'name' => $dataInsert['name'] ?? '', |
|
|
|
'name' => $dataInsert['name'] ?? '', |
|
|
|
'type' => self::AGENTS, |
|
|
|
'type' => self::AGENTS, |
|
|
|
'grant' => $this->_default_grant_two |
|
|
|
'grant' => $this->_default_grant_two, |
|
|
|
|
|
|
|
'phone' => $dataInsert['phone'] ?? '', |
|
|
|
|
|
|
|
'address' => $dataInsert['address'] ?? '', |
|
|
|
]; |
|
|
|
]; |
|
|
|
$agentInsertId = Agent::insertGetId($dataAgentInsert); |
|
|
|
$agentInsertId = Agent::insertGetId($dataAgentInsert); |
|
|
|
if ($agentInsertId) { |
|
|
|
if ($agentInsertId) { |
|
|
|