users clean up
This commit is contained in:
@@ -30,8 +30,11 @@ class Users extends BaseController
|
||||
];
|
||||
return $this->respond($data, 200);
|
||||
}
|
||||
else{
|
||||
return $this->respond(['error'=>'empty uid'], 400);
|
||||
}
|
||||
|
||||
return $this->respond([], 400);
|
||||
//return $this->respond([], 400);
|
||||
}
|
||||
|
||||
private function userLoan($uid){
|
||||
@@ -53,9 +56,11 @@ class Users extends BaseController
|
||||
'customer' => $row
|
||||
];
|
||||
return $this->respond($data, 200);
|
||||
}else{
|
||||
return $this->respond(['error'=>'empty uid'], 400);
|
||||
}
|
||||
|
||||
return $this->respond([], 400);
|
||||
// return $this->respond([], 400);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user