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