dash profile
This commit is contained in:
@@ -196,6 +196,24 @@ class Users extends BaseController
|
||||
// return $this->respond([], 400);
|
||||
}
|
||||
|
||||
public function userCustomer(){
|
||||
$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);
|
||||
}else{
|
||||
return $this->respond(['error'=>'empty uid','inn'=>$in,], 400);
|
||||
}
|
||||
|
||||
// return $this->respond([], 400);
|
||||
}
|
||||
|
||||
public function userDashReferences(){
|
||||
$in = $this->request->getGet();
|
||||
$data = [];
|
||||
|
||||
Reference in New Issue
Block a user