Load profile

This commit is contained in:
CHIEFSOFT\ameye
2024-05-01 08:13:13 -04:00
parent 6b068294c7
commit 8ab9ffe85e
4 changed files with 35 additions and 5 deletions
+16
View File
@@ -27,4 +27,20 @@ class Users extends BaseController
return $this->respond($data, 200);
}
public function userProfile(){
$in = $this->request->getGet();
$data = [];
if ($in['uid'] !=''){
$query = $this->db->query("SELECT * FROM customers WHERE uid = '".$in['uid']."' ");
$row = $query->getRowArray();
$data = [
'call_return' => '100',
'customer' => $row
];
return $this->respond($data, 200);
}
}
}