$user = (object)$this->model->getUser($pay_id)[0];
$data = (object)[
'id' => $user->id,
'first_name' => $user->first_name,
'last_name' => $user->last_name,
'photo' => $user->photo,
];
if ($user->activity) {
$data->activity = $user->activity;
}
$this->helper->sendResponse(['user' => $data]);