From 2507995cd4fa40493d60dde51455abfbdeea4d55 Mon Sep 17 00:00:00 2001 From: nocode Date: Thu, 11 Jul 2024 15:51:48 +0700 Subject: [PATCH] FIX message login --- app/Http/Controllers/Api/AuthApiController.php | 4 +++- app/Models/Agent.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Api/AuthApiController.php b/app/Http/Controllers/Api/AuthApiController.php index 1ea762f..3717a0e 100755 --- a/app/Http/Controllers/Api/AuthApiController.php +++ b/app/Http/Controllers/Api/AuthApiController.php @@ -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) { diff --git a/app/Models/Agent.php b/app/Models/Agent.php index af0b8cd..c18ee57 100755 --- a/app/Models/Agent.php +++ b/app/Models/Agent.php @@ -17,7 +17,7 @@ class Agent extends Model 'grant', 'type', 'phone', - 'addess', + 'address', 'avatar', 'status', 'description',